/* Base Styles */
:root {
    --primary: #2196F3;
    --primary-light: #64B5F6;
    --primary-dark: #1976D2;
    --accent: #00BCD4;
    --text-primary: #333333;
    --text-secondary: #757575;
    --background: #f5f7fa;
    --card-bg: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Login Page Styles ===== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    perspective: 1000px;
}

.login-wrapper {
    transform-style: preserve-3d;
    transition: var(--transition);
}

.login-wrapper:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
}

.login-box {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--box-shadow);
    width: 400px;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 80%);
    opacity: 0.2;
    pointer-events: none;
    transform: translateZ(-5px);
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    transform: translateZ(30px);
}

.logo {
    max-width: 180px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.login-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-dark);
    font-weight: 600;
    letter-spacing: 0.5px;
    transform: translateZ(20px);
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
    transform: translateZ(15px);
}

.input-group input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid rgba(100, 181, 246, 0.3);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    transition: var(--transition);
    color: var(--text-primary);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
}

.input-group label {
    position: absolute;
    left: 15px;
    top: 0;
    transform: translateY(-50%);
    background: white;
    padding: 0 5px;
    font-size: 12px;
    color: var(--primary);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.input-group input:focus + label, 
.input-group input:not(:placeholder-shown) + label {
    opacity: 1;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transform: translateZ(20px);
    transition: var(--transition);
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateZ(25px);
}

.login-btn-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s, opacity 0.6s;
}

.login-btn:active .login-btn-effect {
    transform: translate(-50%, -50%) scale(20);
    opacity: 0;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 14px;
    color: var(--text-secondary);
    transform: translateZ(10px);
}

.decorative-element {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(25, 118, 210, 0.1), rgba(100, 181, 246, 0.1));
    top: -100px;
    right: -100px;
    z-index: -1;
}

/* ===== Dashboard Page Styles ===== */
.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo {
    height: 40px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-bar {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    width: 250px;
    font-size: 14px;
    transition: var(--transition);
}

.search-bar:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
    width: 280px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--primary);
    font-size: 20px;
}

.icon-btn:hover {
    background: rgba(33, 150, 243, 0.1);
}

/* Filters Section */
.filters-section {
    background: white;
    margin: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: visible;
}

.filters-container {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin-bottom: 20px;
}

.filters-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 6px;
    background: linear-gradient(to bottom, var(--primary-light), var(--primary-dark));
    opacity: 0.7;
}

/* Filter Header */
.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    position: relative;
}

.filters-title {
    font-weight: 600;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.25rem;
}

.filter-icon-pulse {
    color: var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

.toggle-filters-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background-color: rgba(33, 150, 243, 0.1);
}

.toggle-filters-btn:hover {
    background-color: rgba(33, 150, 243, 0.2);
    transform: translateY(-2px);
}

/* Search Container */
.search-container {
    margin-bottom: 1.5rem;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: var(--primary);
}

.global-search {
    width: 100%;
    padding: 12px 40px;
    border: 2px solid rgba(33, 150, 243, 0.2);
    border-radius: 50px;
    background: white;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(33, 150, 243, 0.05);
}

.global-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.1);
}

.clear-search {
    position: absolute;
    right: 15px;
    color: var(--text-secondary);
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.clear-search:hover {
    opacity: 1;
    color: var(--primary-dark);
}

/* Filter Groups */
.filter-groups {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    background-color: rgba(245, 247, 250, 0.5);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(33, 150, 243, 0.08);
}

.filter-group:hover {
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.1);
    transform: translateY(-2px);
    border-color: rgba(33, 150, 243, 0.2);
}

.filter-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    opacity: 0;
    transition: var(--transition);
}

.filter-group:hover::before {
    opacity: 1;
}

.filter-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.filter-group-header i {
    color: var(--primary);
    font-size: 16px;
}

.filter-label {
    display: block;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-primary);
    margin: 0;
}

.select-wrapper {
    position: relative;
}

.filter-select {
    width: 100%;
    padding: 10px 35px 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%232196F3" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.custom-select {
    position: relative;
}

/* Selected Filters Display */
.selected-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    min-height: 24px;
}

.selected-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(33, 150, 243, 0.1);
    color: var(--primary-dark);
    padding: 4px 8px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.selected-filter-tag:hover {
    background: rgba(33, 150, 243, 0.2);
}

.selected-filter-tag i {
    font-size: 10px;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.apply-filter-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.2);
}

.apply-filter-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(33, 150, 243, 0.3);
}

.clear-filter-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.clear-filter-btn:hover {
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-primary);
}

/* Candidate Cards Grid */
.candidates-section {
    padding: 0 1.5rem 1.5rem;
}

.candidate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.candidate-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.candidate-card:hover {
    transform: perspective(1000px) translateY(-5px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 20px 40px rgba(33, 150, 243, 0.15);
    border-color: rgba(33, 150, 243, 0.1);
}

.candidate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.candidate-card:hover::before {
    transform: scaleX(1);
}

.candidate-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.candidate-name {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.candidate-headline {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 1rem;
}

.candidate-checkbox {
    position: relative;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.candidate-checkbox:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.candidate-checkbox:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
}

.candidate-details {
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.detail-icon {
    color: var(--primary);
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.detail-text {
    flex: 1;
}

.candidate-skills {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-top: 1rem;
    overflow: hidden;
    white-space: nowrap;
}

.skill-tag {
    padding: 4px 10px;
    background: rgba(33, 150, 243, 0.1);
    color: var(--primary);
    border-radius: 15px;
    font-size: 12px;
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.locations-group {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 14px;
}

.location-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

.location-arrow {
    margin: 0 0.5rem;
    color: var(--primary);
}

/* Floating Action Button */
.floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    border: none;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 90;
    transform: translateY(100px);
    opacity: 0;
}

.floating-btn.visible {
    transform: translateY(0);
    opacity: 1;
}

.floating-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
    transform: translateY(-5px);
}

.floating-btn-icon {
    font-size: 18px;
}

/* Settings Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--box-shadow);
    transform: scale(0.8);
    transition: var(--transition);
}

.modal.visible .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: var(--primary-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary);
}

.file-upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.file-upload-area:hover {
    border-color: var(--primary-light);
    background: rgba(33, 150, 243, 0.05);
}

.file-upload-icon {
    font-size: 48px;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.file-upload-text {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    font-size: 16px;
}

.upload-instructions {
    margin: 1.5rem 0;
    text-align: left;
    background: #f5f7fa;
    padding: 1.2rem;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary);
}

.upload-instructions p {
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
}

.upload-instructions ol {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.upload-instructions li {
    margin-bottom: 0.4rem;
    font-size: 13px;
    color: var(--text-secondary);
}

.file-upload-input {
    display: none;
}

.file-upload-btn {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-btn:hover {
    background: #eeeeee;
    border-color: #bdbdbd;
}

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

.upload-action-btn:hover {
    background: var(--primary-dark);
}

.upload-action-btn:disabled {
    background: #e0e0e0;
    cursor: not-allowed;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-box {
        width: 90%;
        max-width: 350px;
        padding: 2rem;
    }
    
    .candidate-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .filters-section {
        margin: 1rem;
        padding: 1rem;
    }
    
    .filter-groups {
        flex-direction: column;
    }
    
    .header-controls .search-bar {
        width: 150px;
    }
    
    .header-controls .search-bar:focus {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .login-box {
        width: 95%;
        padding: 1.5rem;
    }
    
    .candidate-grid {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .header-controls .search-bar {
        width: 100%;
    }
}

.profile-summary {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

.read-more {
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
    margin-left: 5px;
    display: inline-block;
}

/* Style for the "more skills" indicator */
.more-skills {
    display: inline-block;
    background: #f5f5f5;
    color: #666;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin: 2px;
    cursor: pointer;
    white-space: nowrap;
}

/* Style for hover box */
.hover-box {
    position: absolute;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 15px;
    z-index: 1000;
    max-width: 350px;
}

.hover-box h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.hover-box p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.hover-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* View toggle button styles */
.view-toggle-btn {
    padding: 8px 15px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.view-toggle-btn.active {
    background-color: #1976D2;
    color: white;
    border-color: #1976D2;
}

.view-toggle-btn:hover:not(.active) {
    background-color: #e0e0e0;
}
