/* Styles for the user dashboard and login page */

/* ==========================================================================
   Base & Login
   ========================================================================== */
.tagus-dashboard-login-wrapper {
    max-width: 450px;
    margin: 60px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e0e6ed;
}

.tagus-dashboard-login-wrapper h3 {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.tagus-dashboard-login-wrapper > p {
    color: #7f8c8d;
    margin-bottom: 30px;
}

.tagus-dashboard-login-wrapper form {
    text-align: left;
}

.tagus-dashboard-login-wrapper .form-group,
.tagus-dashboard-login-wrapper form p {
    margin-bottom: 20px;
}

.tagus-dashboard-login-wrapper label {
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.tagus-dashboard-login-wrapper input[type="text"],
.tagus-dashboard-login-wrapper input[type="password"],
.tagus-dashboard-login-wrapper input[type="email"] {
    box-sizing: border-box;
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.tagus-dashboard-login-wrapper input:focus {
    outline: none;
    border-color: var(--tv-dashboard-accent-color, #005b96);
    box-shadow: 0 0 0 4px rgba(0, 91, 150, 0.1);
}

.tagus-dashboard-login-wrapper .login-remember label {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.tagus-dashboard-login-wrapper .login-submit input[type="submit"] {
    width: 100%;
    padding: 15px;
    background-color: var(--tv-dashboard-accent-color, #005b96);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tagus-dashboard-login-wrapper .login-submit input[type="submit"]:hover {
    filter: brightness(110%);
}

.tagus-dashboard-login-wrapper .tv-lost-password-container {
    margin-top: 20px;
}

.tagus-dashboard-login-wrapper .tv-lost-password-container a {
    color: var(--tv-dashboard-accent-color, #005b96);
    text-decoration: none;
    font-weight: 600;
}

/* ==========================================================================
   Dashboard Layout
   ========================================================================== */

.tagus-value-dashboard {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.tagus-value-dashboard .dashboard-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e6ed;
}

.tagus-value-dashboard .dashboard-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.tagus-value-dashboard .dashboard-header p {
    font-size: 16px;
    color: #7f8c8d;
    margin-top: 5px;
}

.dashboard-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* ==========================================================================
   Dashboard Navigation
   ========================================================================== */
.dashboard-nav {
    flex: 0 0 250px; /* Do not grow, do not shrink, base width 250px */
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    padding: 20px 0;
}

.dashboard-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-nav li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    text-decoration: none;
    color: #5d6d7e;
    font-weight: 600;
    font-size: 16px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.dashboard-nav li a:hover {
    background-color: #f8f9fa;
    color: var(--tv-dashboard-accent-color, #005b96);
}

.dashboard-nav li.active a {
    color: var(--tv-dashboard-accent-color, #005b96);
    background-color: #e7f3ff;
    border-left-color: var(--tv-dashboard-accent-color, #005b96);
}

.dashboard-nav li a i {
    width: 25px;
    margin-right: 15px;
    text-align: center;
}

/* ==========================================================================
   Dashboard Content
   ========================================================================== */
.dashboard-content {
    flex: 1;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.dashboard-card .card-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e0e6ed;
}

.dashboard-card .card-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.dashboard-card .card-header h3 i {
    margin-right: 15px;
    color: var(--tv-dashboard-accent-color, #005b96);
}

.dashboard-card .card-content {
    padding: 25px;
}

/* Shared form styles within dashboard */
.dashboard-card form .form-group {
    margin-bottom: 20px;
}
.dashboard-card form label {
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}
.dashboard-card form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
}
.dashboard-card form .form-control:disabled {
    background-color: #f8f9fa;
}
.dashboard-card form .btn-primary {
    padding: 12px 25px;
    background-color: var(--tv-dashboard-accent-color, #005b96);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.dashboard-card form .form-row {
    display: flex;
    gap: 20px;
}
.dashboard-card form .form-row .form-group {
    flex: 1;
}


/* Section-specific styles */

/* Valuations List */
.valuation-year-header {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 20px 0 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #e0e6ed;
}
.valuation-year-header:first-of-type {
    margin-top: 0;
}
.valuation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.valuation-item {
    border-bottom: 1px solid #e0e6ed;
}
.valuation-item:last-child {
    border-bottom: none;
}
.valuation-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #5d6d7e;
    transition: background-color 0.2s ease;
    padding: 15px 10px;
    border-radius: 8px;
}
.valuation-link:hover {
    background-color: #f8f9fa;
}
.valuation-link.disabled {
    opacity: 0.6;
    pointer-events: none;
}
.valuation-info {
    display: flex;
    flex-direction: column;
}
.valuation-ref {
    font-weight: 600;
    color: #2c3e50;
}
.valuation-address {
    font-size: 14px;
}
.valuation-date {
    font-size: 13px;
    color: #95a5a6;
    margin-top: 4px;
}
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}
.status-badge.status-completed { background-color: #d4edda; color: #155724; }
.status-badge.status-pending { background-color: #fff3cd; color: #856404; }
.status-badge.status-failed { background-color: #f8d7da; color: #721c24; }

/* Documents Table */
.documents-table {
    width: 100%;
    border-collapse: collapse;
}
.documents-table th,
.documents-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e6ed;
}
.documents-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}
.documents-table a {
    text-decoration: none;
    color: var(--tv-dashboard-accent-color, #005b96);
    font-weight: 600;
}
.documents-table a i {
    margin-right: 5px;
}

/* Packs Section */
.credits-info p {
    font-size: 18px;
    margin-bottom: 20px;
}
.credits-info .credits-count {
    font-size: 24px;
    font-weight: 700;
    color: var(--tv-dashboard-accent-color, #005b96);
    background: #e7f3ff;
    padding: 5px 15px;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    .dashboard-nav {
        width: 100%;
        margin-bottom: 20px;
        flex: 1 1 auto;
    }
    .dashboard-nav ul {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    .dashboard-nav li a {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 15px;
        border-left: none;
        border-bottom: 4px solid transparent;
    }
    .dashboard-nav li.active a {
        border-bottom-color: var(--tv-dashboard-accent-color, #005b96);
        border-left-color: transparent;
    }
    .dashboard-nav li a i {
        margin-right: 0;
        margin-bottom: 5px;
        font-size: 20px;
    }
    .dashboard-nav li a span {
        font-size: 12px;
    }
}