/* MonthlySpecs Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: #f8fafc;
}

.container {
    max-width: 95%;
    width: 95%;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #1e293b;
    padding: 0;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    max-width: 100%;
}

header h1 {
    font-size: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-image {
    height: 45px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    color: #667eea;
    text-decoration: none;
    margin-left: 0.5rem;
    padding: 0.6rem 1.5rem;
    border-radius: 0;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    border: 2px solid transparent;
}

nav a:hover {
    background: #f8f9fa;
    border-color: #667eea;
    transform: translateY(-1px);
}

/* Top Navigation Menu */
.top-nav {
    background: #34495e;
    border-bottom: 3px solid #3498db;
    margin-bottom: 2rem;
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.top-nav-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.top-nav-right {
    display: flex;
    align-items: center;
}

.top-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-menu li {
    position: relative;
}

.top-menu a {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    color: #ecf0f1;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.top-menu a:hover {
    background: #2c3e50;
}

.top-menu a.active {
    background: #3498db;
    border-bottom: 3px solid #2980b9;
}

.top-menu-icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: #ecf0f1;
    background: transparent;
    border-radius: 0;
    margin-left: 0;
}

.user-info-icon {
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

.user-info-text h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.user-info-text p {
    margin: 0;
    font-size: 0.75rem;
    color: #95a5a6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    line-height: 1.5;
    border-radius: 0.3rem;
}

button.btn, a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* Cards */
.card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 0.75rem 1.25rem;
    margin-bottom: 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,.125);
    border-radius: 8px 8px 0 0;
}

.card-header.bg-primary {
    background-color: #3498db;
    color: white;
}

.card-header.bg-success {
    background-color: #28a745;
    color: white;
}

.card-header.bg-warning {
    background-color: #ffc107;
    color: #212529;
}

.card-header.bg-info {
    background-color: #17a2b8;
    color: white;
}

.card-header h5 {
    margin: 0;
}

/* Messages */
.messages {
    list-style: none;
    margin-bottom: 1rem;
}

.messages li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.messages .error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.messages .success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

/* Forms */
form input, form textarea, form select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    font-family: inherit;
}

form input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    margin-bottom: 0;
    cursor: pointer;
    width: 1.2rem;
    height: 1.2rem;
    vertical-align: middle;
    accent-color: #3498db;
}

form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

form input:focus, form textarea:focus, form select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

form input[type="checkbox"]:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.form-check label {
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* Breadcrumb Styles */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin-bottom: 1rem;
    list-style: none;
    background-color: transparent;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    display: inline-block;
    padding-right: 0.5rem;
    color: #6c757d;
    content: "/";
}

.breadcrumb-item a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Table Styles */
.table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.table-borderless th,
.table-borderless td {
    border: 0;
    padding: 0.5rem 0;
}

.table-borderless th {
    font-weight: 600;
    color: #555;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.85em;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.badge.bg-success {
    background-color: #28a745;
}

.badge.bg-warning {
    background-color: #ffc107;
}

.badge.bg-danger {
    background-color: #dc3545;
}

.badge.bg-secondary {
    background-color: #6c757d;
}

.badge.bg-info {
    background-color: #17a2b8;
}

.badge.bg-primary {
    background-color: #007bff;
}

.badge.text-dark {
    color: #212529 !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

.text-muted {
    color: #6c757d !important;
}

.text-end {
    text-align: right;
}

.text-center {
    text-align: center;
}

.text-white {
    color: white !important;
}

code {
    font-size: 87.5%;
    color: #e83e8c;
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-12, .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-9 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 768px) {
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
}

/* Spacing Utilities */
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.me-2 { margin-right: 0.5rem !important; }

.d-flex { display: flex !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }

/* Footer Styles */
footer {
    background: #1e3a5f;
    color: #e0e6ed;
    padding: 3rem 0 1.5rem;
    margin-top: 0;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: #b0bac9;
    line-height: 1.8;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-icon {
    font-size: 1.2rem;
    width: 24px;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 1.5rem;
    text-align: center;
    color: #8890a0;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .top-menu {
        flex-wrap: wrap;
    }
    
    .top-menu a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .user-info {
        margin-left: 0.5rem;
        padding: 0.5rem;
    }
    
    .user-info-text h4 {
        font-size: 0.8rem;
    }
    
    .user-info-text p {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-nav .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .top-nav-left {
        flex-direction: column;
        gap: 0;
    }
    
    .top-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .top-menu li {
        border-bottom: 1px solid #4a5f7f;
    }
    
    .top-menu a {
        padding: 0.75rem 1rem;
    }
    
    .top-nav-right {
        padding: 0.75rem 1rem;
        background: #2c3e50;
    }
    
    .user-info {
        margin-left: 0;
    }
    
    .row {
        margin-right: 0;
        margin-left: 0;
    }
    
    .row > * {
        padding-right: 0;
        padding-left: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
