:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Call to action button styling */
.call-to-action-btn {
    background-color: #90EE90 !important; /* Light green */
    border-color: #90EE90 !important;
    color: #2d5016 !important; /* Dark green text */
    font-weight: 600 !important;
    font-size: 16px !important;
    padding: 15px 25px !important; /* Bigger height, smaller width */
    border-radius: 8px !important;
    box-shadow: 0 4px 8px rgba(144, 238, 144, 0.3) !important;
    transition: all 0.3s ease !important;
    width: auto !important;
    min-width: 200px !important;
    max-width: 280px !important;
}

.call-to-action-btn:hover {
    background-color: #7FDD7F !important;
    border-color: #7FDD7F !important;
    color: #2d5016 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(144, 238, 144, 0.4) !important;
}

.call-to-action-btn:focus {
    background-color: #7FDD7F !important;
    border-color: #7FDD7F !important;
    color: #2d5016 !important;
    box-shadow: 0 0 0 0.2rem rgba(144, 238, 144, 0.5) !important;
}

/* Login Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 0.6s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 15px;
}

.navbar-logo {
    height: 32px;
    width: auto;
    margin-right: 10px;
}

/* Fancy Tooltips */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-container[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    animation: tooltipFadeIn 0.3s ease forwards;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tooltip-container[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 95%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 1001;
    opacity: 0;
    animation: tooltipFadeIn 0.3s ease forwards;
    pointer-events: none;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Variable pills for email templates */
.variables-container {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid var(--secondary-color);
}

.variables-container h6 {
    margin: 0 0 8px 0;
    color: var(--primary-color);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.variable-pill {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 3px 8px;
    margin: 2px;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.variable-pill:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.variable-pill:active {
    transform: translateY(0);
}

/* Password generator button */
.password-generator-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.password-generator-btn:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.05);
}

.password-field-container {
    position: relative;
}

.login-header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.error-message {
    color: var(--danger-color);
    font-size: 0.9rem;
    margin-top: 10px;
    padding: 10px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: var(--border-radius);
    display: none;
}

/* Main App Styles */
#main-app {
    background: #f8f9fa;
    min-height: 100vh;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
}

.secondary-nav {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-pills .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 25px;
    transition: var(--transition);
}

.nav-pills .nav-link.active {
    background-color: var(--secondary-color);
    color: white;
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    margin-bottom: 20px;
}

.content-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.content-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--dark-color);
}

.data-table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

/* Buttons */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

/* Forms */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
}

.form-control {
    border: 2px solid #e1e8ed;
    border-radius: var(--border-radius);
    padding: 10px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Search Bar */
.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 25px;
    font-size: 1rem;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active { background: rgba(39, 174, 96, 0.1); color: var(--success-color); }
.status-inactive { background: rgba(231, 76, 60, 0.1); color: var(--danger-color); }
.status-pending { background: rgba(243, 156, 18, 0.1); color: var(--warning-color); }
.status-progress { background: rgba(52, 152, 219, 0.1); color: var(--secondary-color); }
.status-completed { background: rgba(39, 174, 96, 0.1); color: var(--success-color); }

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.dashboard-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.dashboard-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.dashboard-label {
    color: #666;
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 0.9rem;
    }
    
    .login-card {
        padding: 30px 20px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Comprehensive File View Styles */
.file-details-comprehensive {
    max-height: 80vh;
    overflow-y: auto;
}

.file-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.section-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 8px;
}

.info-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.info-item strong {
    margin-right: 8px;
    min-width: 120px;
}

.people-section {
    margin-bottom: 15px;
}

.people-section strong {
    display: block;
    margin-bottom: 10px;
    color: var(--text-color);
}

.person-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-left: 3px solid var(--primary-color);
}

.person-name {
    display: block;
    font-weight: 500;
    color: var(--text-color);
}

.person-email {
    display: block;
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 2px;
}

.step-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.step-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.step-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e9ecef;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-title {
    flex: 1;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-left: 15px;
}

.step-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-status.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.step-status.status-in_progress {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #74b9ff;
}

.step-status.status-completed {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #00b894;
}

.step-content {
    padding: 20px;
    color: var(--text-color);
    line-height: 1.6;
}

.step-content p {
    margin-bottom: 0;
}

.no-steps {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.file-metadata {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

/* Custom Confirmation Dialog */
.custom-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-dialog-overlay.show {
    opacity: 1;
    visibility: visible;
}

.custom-dialog {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(-20px);
    transition: all 0.3s ease;
}

.custom-dialog-overlay.show .custom-dialog {
    transform: scale(1) translateY(0);
}

.custom-dialog-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a67d8 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    align-items: center;
}

.custom-dialog-header i {
    font-size: 1.5rem;
    margin-right: 12px;
}

.custom-dialog-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.custom-dialog-body {
    padding: 25px;
    color: var(--text-color);
    line-height: 1.6;
}

.custom-dialog-message {
    font-size: 1rem;
    margin-bottom: 0;
}

.custom-dialog-footer {
    padding: 20px 25px;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #e9ecef;
}

.custom-dialog-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.custom-dialog-btn-cancel {
    background: #6c757d;
    color: white;
}

.custom-dialog-btn-cancel:hover {
    background: #5a6268;
}

.custom-dialog-btn-confirm {
    background: #dc3545;
    color: white;
}

.custom-dialog-btn-confirm:hover {
    background: #c82333;
}

.custom-dialog-btn-primary {
    background: var(--primary-color);
    color: white;
}

.custom-dialog-btn-primary:hover {
    background: #5a67d8;
}

/* Notification System */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.notification {
    background: white;
    border-left: 4px solid;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    border-left-color: #28a745;
}

.notification.error {
    border-left-color: #dc3545;
}

.notification.warning {
    border-left-color: #ffc107;
}

.notification.info {
    border-left-color: #17a2b8;
}

.notification-icon {
    margin-right: 12px;
    font-size: 1.25rem;
}

.notification.success .notification-icon {
    color: #28a745;
}

.notification.error .notification-icon {
    color: #dc3545;
}

.notification.warning .notification-icon {
    color: #ffc107;
}

.notification.info .notification-icon {
    color: #17a2b8;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-color);
}

.notification-message {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    margin-left: 12px;
}

.notification-close:hover {
    color: var(--text-color);
}

/* File upload styling */
.file-upload-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background-color: #f9f9f9;
}

.file-item {
    background-color: #fff;
    border: 1px solid #ddd !important;
}

.file-item:hover {
    background-color: #f8f9fa;
}

#selected-files h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Advisor dashboard styling */
.advisor-dashboard {
    padding: 20px 0;
}

.advisor-quick-action {
    margin-bottom: 20px;
}

.action-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.action-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 20px;
}

.action-content h4 {
    color: #495057;
    margin-bottom: 15px;
    font-weight: 600;
}

.action-content p {
    color: #6c757d;
    margin-bottom: 25px;
}

/* Status badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background-color: #ffeaa7;
    color: #e17055;
}

.status-accepted {
    background-color: #55efc4;
    color: #00b894;
}

.status-rejected {
    background-color: #fd79a8;
    color: #e84393;
}

/* Navigation badge */
.nav-badge {
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 5px;
    display: inline-block;
    min-width: 18px;
    text-align: center;
}
