/* Dashboard Styles */
.dashboard-container {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 30px 0;
}

.dashboard-sidebar {
    position: sticky;
    top: 20px;
}

.profile-card {
    background: linear-gradient(135deg, #141210 0%, #333333 100%);
    padding: 25px;
    text-align: center;
    color: white;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
    margin-bottom: 20px;
}

.profile-avatar {
    margin-bottom: 20px;
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.profile-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.profile-placeholder i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.profile-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.profile-role {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-approved {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.status-pending {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.status-pending_email {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

.dashboard-nav {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #8B4513;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 10px;
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #8B4513;
    transform: translateX(5px);
}

.nav-item.active {
    background: linear-gradient(135deg, #141210 0%, #333333 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.nav-item.logout {
    color: #dc3545;
    margin-top: 10px;
    border-top: 1px solid #f8f9fa;
    padding-top: 15px;
}

.nav-item.logout:hover {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #dc3545;
}

.nav-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.dashboard-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.dashboard-card .card-header {
    background: linear-gradient(135deg, #141210 0%, #333333 100%);
    color: white;
    padding: 20px 25px;
    border: none;
}

.dashboard-card .card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.dashboard-card .card-title i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.dashboard-card .card-body {
    padding: 25px;
}

.info-section {
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #8B4513;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f8f9fa;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #6c757d;
    min-width: 150px;
}

.info-value {
    color: #495057;
    text-align: right;
    flex: 1;
}

.info-text {
    color: #495057;
    line-height: 1.6;
    margin: 0;
}

.form-section {
    margin-bottom: 30px;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #8B4513;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f8f9fa;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-input:focus {
    outline: none;
    border-color: #8B4513;
    background: white;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #8B4513;
    background: white;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.form-file {
    position: relative;
    display: inline-block;
    width: 100%;
}

.form-file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.form-file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #141210 0%, #333333 100%);
    color: white!important;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 2px solid transparent;
}

.form-file-label:hover {
    background: linear-gradient(135deg, #A0522D 0%, #8B4513 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.form-file-label i {
    margin-right: 8px;
}

.form-file-clear {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
}

.form-file-clear:hover {
    background: #c82333;
    transform: scale(1.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f8f9fa;
}

.btn-primary {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #A0522D 0%, #8B4513 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.discount-info {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.discount-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.discount-title {
    color: #155724;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.discount-title i {
    margin-right: 10px;
    color: #28a745;
}

.discount-percent {
    font-size: 2.5rem;
    font-weight: 700;
    color: #28a745;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.discount-description {
    color: #155724;
    margin: 0;
    font-size: 1.1rem;
}

.discount-steps {
    color: #495057;
    padding-left: 20px;
}

.discount-steps li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.discount-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.warning-header {
    margin-bottom: 15px;
}

.warning-title {
    color: #856404;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.warning-title i {
    margin-right: 10px;
    color: #ffc107;
}

.warning-description {
    color: #856404;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.empty-title {
    color: #495057;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.empty-description {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    border-left: 4px solid #28a745;
}

.notification.show {
    transform: translateX(0);
}

.notification-error {
    border-left-color: #dc3545;
}

.notification i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.notification-success i {
    color: #28a745;
}

.notification-error i {
    color: #dc3545;
}

/* Spinner animation */
.fa-spinner.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Button loading state */
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary:disabled:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 15px 0;
    }

    .profile-card {
        padding: 20px;
    }

    .profile-name {
        font-size: 1.2rem;
    }

    .dashboard-card .card-body {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .discount-header {
        flex-direction: column;
        text-align: center;
    }

    .discount-percent {
        font-size: 2rem;
        margin-top: 10px;
    }

    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }

    .notification.show {
        transform: translateY(0);
    }
}
