/* Responsive & Elegant Mobile Enhancements */

/* 1. Improve container padding and center content on mobile */
@media (max-width: 767px) {
    .container, .container-fluid {
        padding-left: 8px;
        padding-right: 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* 2. Center and enhance buttons and form controls */
@media (max-width: 767px) {
    .btn, .form-control {
        font-size: 16px;
        padding: 12px 20px;
        border-radius: 8px;
        margin: 8px auto;
        display: block;
        width: 90%;
        max-width: 350px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        transition: background 0.2s, box-shadow 0.2s;
    }
    .btn:hover, .btn:focus {
        background: #23527c !important;
        color: #fff !important;
        box-shadow: 0 4px 16px rgba(51,122,183,0.15);
    }
}

/* 3. Navbar: center brand and nav links, better spacing */
@media (max-width: 767px) {
    .navbar-header, .navbar-brand {
        text-align: center;
        width: 100%;
        float: none !important;
        display: block;
        margin: 0 auto;
    }
    .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .navbar-nav > li {
        width: 100%;
    }
    .navbar-nav > li > a {
        padding-top: 16px;
        padding-bottom: 16px;
        font-size: 17px;
        text-align: center;
    }
}

/* 4. Table: horizontal scroll for overflow */
.table-responsive {
    -webkit-overflow-scrolling: touch;
}

/* 5. Card-like panel and well for modern look */
.panel, .well, .thumbnail {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    border-radius: 12px;
    border: none;
    margin: 16px auto;
    max-width: 95vw;
}

/* 6. Remove outline on tap for buttons/links, but keep accessibility */
a:focus, button:focus, .btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px #337ab7;
}

/* 7. Make images fully responsive and centered */
img, .img-responsive {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 8. Add spacing between stacked elements */
@media (max-width: 767px) {
    .row > [class*="col-"] {
        margin-bottom: 18px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* 9. Typography improvements */
body {
    font-size: 16px;
    line-height: 1.7;
    background: #f8fafc;
    color: #222;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    text-align: center;
    letter-spacing: 0.01em;
}

/* 10. Better touch feedback for buttons */
.btn:active {
    background-color: #286090 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(40,96,144,0.18);
}