/* Admin-specific styles extracted from view files */

/* Admin Header Styles */
.admin-header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-section {
    background: #fff5f5;
    border: 2px solid #dc3545;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-controls {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.color-preview {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 10px;
    margin-bottom: -10px;
    border: 2px solid #dee2e6;
}

.btn-admin {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
    color: white;
}

.admin-badge {
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 600;
}

.password-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    text-align: center;
}

.status-active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.status-inactive {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Floating Navigation Styles */
.floating-nav {
    position: fixed;
    bottom: 20px;
    right: 20px;
    transform: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #318549;
    padding: 1rem 0.5rem;
    z-index: 1000;
    transition: all 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.floating-nav:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.floating-nav.minimized {
    transform: translateY(calc(100% + 20px));
}

.floating-nav-minimize {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.floating-nav-minimize:hover {
    background: #c82333;
    transform: scale(1.1);
}

.floating-nav-restore {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #318549;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(49, 133, 73, 0.3);
}

.floating-nav-restore:hover {
    background: #28a745;
    transform: scale(1.1);
}

.floating-nav-restore.show {
    display: flex;
}

.floating-nav-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2c5aa0;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
    transition: all 0.3s ease;
}

.floating-nav-toggle:hover {
    background: #1e3a5f;
    transform: scale(1.1);
}

.nav-item {
    display: block;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    text-decoration: none;
    color: #495057;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    position: relative;
}

.nav-item:hover {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
    color: white;
    text-decoration: none;
    transform: translateX(-3px);
    border-left-color: #dc3545;
}

.nav-item.active {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-left-color: #2c5aa0;
}

.nav-item i {
    width: 20px;
    margin-right: 0.5rem;
    text-align: center;
}

.nav-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
    margin: 0.5rem 0;
}

.form-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-row-custom {
    margin-bottom: 1.5rem;
}

.address-display {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #2c5aa0;
}

.applicant-color-position {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.applicant-color-position.red { background-color: #dc3545; color: white; }
.applicant-color-position.orange { background-color: #fd7e14; color: white; }
.applicant-color-position.purple { background-color: #6f42c1; color: white; }
.applicant-color-position.green { background-color: #28a745; color: white; }
.applicant-color-position.teal { background-color: #20c997; color: white; }
.applicant-color-position.blue { background-color: #007bff; color: white; }
.applicant-color-position.pink { background-color: #e83e8c; color: white; }

.file-upload-section {
    background: #e3f2fd;
    border: 2px dashed #2196f3;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.documents-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.history-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Internship Section Styles */
.internship-date-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.internship-date-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.date-icon {
    margin-right: 1rem;
    font-size: 2rem;
}

.date-content {
    flex: 1;
}

.date-display {
    font-size: 1.1rem;
    font-weight: 600;
}

.date-display .month {
    color: #2c5aa0;
    margin-right: 0.5rem;
}

.date-display .year {
    color: #6c757d;
}

.duration-summary {
    border-left: 4px solid #17a2b8;
}

.info-item {
    margin-bottom: 1rem;
}

.info-value {
    margin-top: 0.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
}

.license-status .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.supervisor-info, .licensing-info, .province-info, .original-province-info {
    padding: 0.5rem 0;
}

/* Card hover effects */
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease;
}

/* Collapsible Section Styles */
.section-title[data-bs-toggle="collapse"] {
    transition: all 0.3s ease;
}

.section-title[data-bs-toggle="collapse"]:hover {
    color: #0056b3 !important;
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.section-title[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.collapse {
    transition: all 0.3s ease;
}

.collapsing {
    transition: height 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-nav {
        display: none;
        position: fixed;
        top: 70px;
        right: 10px;
        left: 10px;
        transform: none;
        max-height: calc(100vh - 80px);
    }
    
    .floating-nav.show {
        display: block;
    }
    
    .floating-nav-toggle {
        display: block;
    }
    
    .internship-date-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .date-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .duration-summary {
        text-align: center;
    }
}

/* Smooth scroll behavior */
html {
    font-size: 13px;
    scroll-behavior: smooth;
}

/* Section spacing for better navigation */
.nav-target {
    scroll-margin-top: 20px;
}
