/* Modern Overrides for TopList Links (Bootstrap 3 Modernization) */

/* 1. Typography & Base */
body {
    font-size: 16px; /* Larger base font for readability */
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* 2. Modern Cards (replacing/enhancing Panels) */
.panel {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.panel:hover {
    box-shadow: 0 10px 15px rgba(0,0,0,0.05), 0 4px 6px rgba(0,0,0,0.05);
}

.panel-heading {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-weight: bold;
    padding: 15px 20px;
}

.panel-body {
    padding: 20px;
}

.content {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 30px;
    width: 100%; /* Fix fixed width issue on mobile */
    max-width: 900px; /* Limit max width */
    margin: 30px auto;
}

/* 3. Modern Forms */
.form-control {
    height: 45px; /* Taller inputs for touch */
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    box-shadow: none;
    padding: 10px 15px;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.input-group-btn .btn {
    height: 45px;
    border-radius: 0 6px 6px 0;
}

/* 4. Modern Buttons */
.btn {
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
}

.btn:active, .btn:focus {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    outline: none;
}

.btn-primary { background-color: #3182ce; }
.btn-success { background-color: #38a169; }
.btn-info { background-color: #319795; }
.btn-warning { background-color: #dd6b20; }
.btn-danger { background-color: #e53e3e; }

/* 5. Navbar Modernization */
.navbar {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    min-height: 60px;
}

.navbar-brand {
    height: 60px;
    line-height: 30px;
    font-weight: 700;
    font-size: 20px;
}

.navbar-nav > li > a {
    padding-top: 20px;
    padding-bottom: 20px;
    font-weight: 500;
}

/* 6. Mobile Responsiveness Enhancements */
@media (max-width: 767px) {
    .content {
        width: 95%;
        padding: 20px;
        margin: 15px auto;
    }

    .navbar-nav > li > a {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }

    /* Improved Mobile Tables (Card View) */
    #no-more-tables td {
        padding-left: 10px !important;
        padding-right: 10px;
        text-align: left;
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    #no-more-tables td:before {
        position: static;
        display: block;
        padding-bottom: 5px;
        color: #718096;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    #no-more-tables tr {
        display: block;
        background: #fff;
        margin-bottom: 15px;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        padding: 15px;
        border: 1px solid #e2e8f0;
    }
}

/* 7. Image Handling */
.img-responsive, .thumbnail > img, .post-image {
    border-radius: 6px;
}

.thumbnail {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

/* 8. Footer */
.foot {
    background: #2d3748; /* Darker modern footer */
    color: #edf2f7;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    margin-top: 40px;
    padding: 40px 0;
}

.foot a {
    color: #63b3ed;
    text-decoration: none;
}

.foot a:hover {
    color: #bee3f8;
    text-decoration: underline;
}

/* 9. Utility Classes */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

.rounded { border-radius: 0.25rem !important; }
.rounded-lg { border-radius: 0.5rem !important; }

.mt-4 { margin-top: 1.5rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.p-4 { padding: 1.5rem !important; }
