/* Skill Form Styles */
:root {
    --primary-color: #4e42d4;
    --primary-light: #6a5adb;
    --primary-dark: #3b31a0;
    --secondary-color: #2575fc;
    --accent-color: #20c997;
    --background-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
    --box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    --background-light: #f9fafb;
    --card-shadow: 0 10px 20px rgba(0,0,0,0.08);
    --hover-shadow: 0 15px 30px rgba(0,0,0,0.12);
    --border-radius: 12px;
    --input-radius: 8px;
    --primary-gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --secondary-gradient: linear-gradient(135deg, #2575fc 0%, #4e42d4 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-light);
    margin: 0;
    padding: 0;
}

/* Main Layout */
.skill-match-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px;
}

.skill-match-header {
    text-align: center;
    padding: 50px 20px;
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.skill-match-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"%3E%3Cpath fill="%23ffffff" fill-opacity="0.05" d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z"%3E%3C/path%3E%3C/svg%3E');
    z-index: 0;
}

.skill-match-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.skill-match-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

/* Form Container Layout */
.skill-match-form-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.form-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.3s ease;
}

.form-container:hover {
    box-shadow: var(--hover-shadow);
}

.side-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 1024px) {
    .skill-match-form-container {
        grid-template-columns: 1fr;
    }
    
    .side-info {
        order: -1;
    }
    
    .skills-container, .match-row, .reviews-list {
        grid-template-columns: 1fr;
    }
    
    .match-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .match-detail-container .match-avatar {
        margin: 0 auto 20px;
    }
    
    .match-score {
        position: static;
        margin-top: 20px;
    }
    
    .score-circle {
        margin: 0 auto 5px;
    }
    
    .modal-content {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .match-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .availability-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .match-actions {
        flex-direction: column;
    }
    
    .skill-match-header h1 {
        font-size: 2rem;
    }
    
    .skill-match-header p {
        font-size: 1rem;
    }
}

/* Form Elements */
.form-container h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

/* Tag Input */
.tag-input-container {
    border: 1px solid #ddd;
    border-radius: var(--input-radius);
    padding: 5px 10px;
    background-color: #f9f9f9;
    min-height: 50px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    transition: all 0.3s ease;
}

.tag-input-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(78, 66, 212, 0.1);
    background-color: white;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-tags .tag {
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag i {
    cursor: pointer;
}

.tag-input-container input {
    border: none;
    background: transparent;
    padding: 8px 5px;
    flex: 1;
    min-width: 120px;
}

.tag-input-container input:focus {
    box-shadow: none;
}

/* Select Inputs */
select, input {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--input-radius);
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

select:focus, input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(78, 66, 212, 0.1);
    outline: none;
    background-color: white;
}

/* Buttons */
.primary-button, 
.secondary-button, 
.tertiary-button {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
}

.primary-button {
    background-color: var(--primary-color);
    color: white;
}

.primary-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(78, 66, 212, 0.3);
}

.secondary-button {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.secondary-button:hover {
    background-color: rgba(78, 66, 212, 0.1);
}

.tertiary-button {
    background-color: transparent;
    color: var(--text-secondary);
    padding: 10px 18px;
}

.tertiary-button:hover {
    color: var(--primary-color);
    background-color: rgba(78, 66, 212, 0.05);
}

.form-actions {
    margin-top: 30px;
}

.form-actions .primary-button {
    min-width: 200px;
    padding: 14px 28px;
    font-size: 1.1rem;
}

/* Advanced Filters */
.advanced-filters-toggle {
    text-align: center;
    margin: 20px 0;
}

.advanced-filters-toggle button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 10px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.advanced-filters-toggle button:hover {
    background-color: rgba(78, 66, 212, 0.05);
}

.advanced-filters-toggle i {
    margin-right: 8px;
}

.advanced-filters {
    background-color: #f8f9fa;
    border-radius: var(--input-radius);
    padding: 20px;
    margin-top: 20px;
    border: 1px dashed #ddd;
}

/* Side Info Cards */
.info-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-5px);
}

.info-card h3 {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.info-card h3 i {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 10px;
    font-size: 1.4rem;
}

.info-card p {
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* Success Story */
.success-story {
    background-color: #f8f9fa;
    border-radius: var(--input-radius);
    padding: 15px;
    margin-top: 15px;
    position: relative;
    border-left: 4px solid var(--primary-color);
}

.success-story:before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 3rem;
    color: rgba(78, 66, 212, 0.1);
    font-family: Georgia, serif;
}

.story-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.story-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.story-skills {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin: 5px 0 0;
}

.success-story p {
    font-style: italic;
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Match Results Section */
.match-results-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--card-shadow);
    margin-top: 50px;
}

.match-results-section h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #333;
}

.results-summary {
    color: #666;
    margin-bottom: 25px;
}

.results-summary span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.filter-group {
    display: flex;
    align-items: center;
}

.filter-group label {
    margin-right: 10px;
    font-weight: 600;
}

.filter-group select {
    width: auto;
    min-width: 160px;
}

.view-toggle {
    display: flex;
    gap: 10px;
}

.view-btn {
    background: #f1f3f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn:hover {
    background: #e9ecef;
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Enhanced Match Cards */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.match-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.1, 0.9, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    height: 100%;
    display: flex;
    
    flex-direction: column;
    animation: fadeUp 0.5s ease backwards;
    will-change: transform, box-shadow;
}

.match-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: rgba(78, 66, 212, 0.15);
}

.match-card:hover .match-avatar {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.match-card:hover .match-name {
    transform: translateY(2px);
}

.match-card-header {
    padding: 25px 20px 15px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    position: relative;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.match-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 auto 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 4px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 1;
    flex-shrink: 0;
}

.match-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 5px;
    line-height: 1.4;
}

.match-location {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.match-skills {
    margin-bottom: 12px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.skill-tag {
    background-color: rgba(78, 66, 212, 0.08);
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary-color);
    border: 1px solid rgba(78, 66, 212, 0.15);
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    cursor: default;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    line-height: 1.3;
}

.skill-tag:hover {
    background-color: rgba(78, 66, 212, 0.12);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(78, 66, 212, 0.1);
}

.match-bio {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 15px;
    padding: 0 2px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;
    word-wrap: break-word;
    height: auto;
    min-height: 60px;
    max-height: 80px;
}

.match-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.match-stat {
    text-align: center;
    background: #f9f9fa;
    padding: 8px 4px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, background-color 0.2s ease;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.match-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    transform: translateY(0);
    transition: transform 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
    line-height: 1.3;
}

.match-stat-label {
    font-size: 0.7rem;
    color: #666;
    margin-top: 2px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
    line-height: 1.3;
}

.match-actions {
    padding: 18px;
    display: flex;
    gap: 12px;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: white;
}

.match-actions button {
    flex: 1;
    padding: 12px 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-profile-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.view-profile-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(78, 66, 212, 0.3);
}

.view-profile-btn i {
    margin-right: 6px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.view-profile-btn:hover i {
    transform: translateX(-2px);
}

.save-match-btn {
    background-color: white;
    color: #666;
    border: 1px solid #ddd;
    width: 50px;
    flex: 0 0 50px;
}

.save-match-btn:hover {
    background-color: #f7f7ff;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 50px 20px;
}

.no-results i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #555;
}

.no-results p {
    color: #777;
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.pagination button {
    background-color: white;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.pagination button:hover:not(:disabled) {
    background-color: #f8f9fa;
    border-color: #ccc;
}

.pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

#prevPage i {
    margin-right: 8px;
}

#nextPage i {
    margin-left: 8px;
}

#pageIndicator {
    margin: 0 15px;
    font-size: 0.9rem;
    color: #666;
}

/* Loading Indicator */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.loading-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--card-shadow);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.spinner {
    margin: 0 auto 20px;
    width: 70px;
    text-align: center;
}

.spinner > div {
    width: 18px;
    height: 18px;
    background: var(--primary-gradient);
    border-radius: 100%;
    display: inline-block;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    margin: 0 3px;
}

.spinner .bounce1 {
    animation-delay: -0.32s;
}

.spinner .bounce2 {
    animation-delay: -0.16s;
}

@keyframes sk-bouncedelay {
    0%, 80%, 100% { 
        transform: scale(0);
    } 40% { 
        transform: scale(1.0);
    }
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
}

.loading-progress {
    height: 6px;
    background-color: #f1f3f5;
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 3px;
    width: 10%;
    transition: width 2s linear;
    animation: progress 2.5s linear forwards;
}

@keyframes progress {
    from { width: 0; }
    to { width: 100%; }
}

.loading-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 90%;
    margin: 0 auto;
    padding-top: 15px;
}

.loading-steps::before {
    content: '';
    position: absolute;
    height: 2px;
    background-color: #e9ecef;
    top: 15px;
    left: 10%;
    right: 10%;
    z-index: -1;
}

.step {
    font-size: 0.85rem;
    color: #adb5bd;
    background: white;
    padding: 4px 0;
    z-index: 1;
    transition: all 0.3s ease;
    position: relative;
    width: 20%;
    text-align: center;
}

.step.active {
    color: var(--primary-color);
    font-weight: 600;
}

.step.completed {
    color: #20c997;
}

.step.active::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-gradient);
    border-radius: 50%;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Match Detail Modal */
.match-detail-container {
    position: relative;
}

.match-profile-header {
    display: flex;
    padding: 40px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    position: relative;
    overflow: hidden;
    color: white;
}

.match-detail-container .match-avatar {
    width: 120px;
    height: 120px;
    font-size: 3.5rem;
    margin-right: 30px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.match-basic-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.match-basic-info h2 {
    font-size: 2.5rem;
    margin: 0 0 15px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.match-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.match-rating span {
    font-size: 1.3rem;
    font-weight: 600;
    margin-right: 10px;
}

.stars {
    display: flex;
    color: #ffc107;
    margin-right: 10px;
    font-size: 1.1rem;
}

.match-reviewCount {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.match-details {
    display: flex;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    flex-wrap: wrap;
}

.match-details span {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.95rem;
}

.match-details i {
    margin-right: 8px;
}

.match-score {
    position: absolute;
    top: 40px;
    right: 40px;
    text-align: center;
    z-index: 2;
}

.score-circle {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.score-circle::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
    opacity: 0.5;
}

.score-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.match-body {
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.match-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.match-section:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.match-section h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
}

.match-section h3 i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.match-section h3::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.match-bio {
    margin-top: -55px;
    position: relative;
    z-index: 10;
}

.match-bio p {
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

.match-skills {
    margin-top: -25px;
    position: relative;
    z-index: 9;
}

.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.skills-column h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #444;
    border-left: 3px solid var(--primary-light);
    padding-left: 10px;
}

.skills-column .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills-column .skill-tag {
    background-color: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.95rem;
    color: #555;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.skills-column .skill-tag:hover {
    background-color: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
}

.match-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.availability-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.day-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.day-label {
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.time-slot {
    width: 100%;
    text-align: center;
    padding: 8px 4px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #777;
}

.time-slot.available {
    background-color: rgba(32, 201, 151, 0.15);
    color: #198754;
    font-weight: 500;
}

.certifications-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.certifications-list li {
    margin-bottom: 12px;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    border-left: 3px solid var(--primary-light);
}

.certifications-list li:hover {
    background-color: #f1f3f5;
    transform: translateX(5px);
}

.certification-name {
    font-weight: 600;
    color: #444;
}

.certification-year {
    color: #777;
    font-size: 0.9rem;
    background: white;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #eee;
}

.reviews-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.reviews-list::-webkit-scrollbar {
    width: 6px;
}

.reviews-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.reviews-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.reviews-list::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.review-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    position: relative;
    transition: all 0.2s ease;
    border-top: 3px solid var(--primary-light);
}

.review-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    align-items: center;
}

.reviewer {
    font-weight: 600;
    color: #444;
    font-size: 1.05rem;
}

.review-date {
    color: #777;
    font-size: 0.9rem;
    background: white;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #eee;
}

.review-rating {
    margin-bottom: 12px;
    color: #ffc107;
    font-size: 1.1rem;
}

.review-text {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.review-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5rem;
    color: var(--primary-light);
    opacity: 0.5;
    font-family: Georgia, serif;
}

.match-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.match-actions button {
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(78, 66, 212, 0.2);
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(78, 66, 212, 0.3);
}

.schedule-btn {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.schedule-btn:hover {
    background: rgba(78, 66, 212, 0.05);
    transform: translateY(-2px);
}

.bookmark-btn {
    background: #f8f9fa;
    color: #555;
    border: 1px solid #ddd;
}

.bookmark-btn:hover {
    background: #f1f3f5;
    color: var(--primary-color);
    border-color: #ccc;
}

/* Skill suggestions */
.skill-suggestions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: var(--input-radius);
    border: 1px solid var(--border-color);
}

.skill-suggestion {
    background-color: white;
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid var(--primary-light);
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.skill-suggestion:hover {
    background-color: var(--primary-light);
    color: white;
}

.skill-category-title {
    width: 100%;
    font-weight: 600;
    color: var(--primary-dark);
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.skill-category-title:first-child {
    margin-top: 0;
}

/* Field selector styling */
#fieldSelector {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

#fieldSelector:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(78, 66, 212, 0.2);
}

/* Skill tags */
.tag {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    margin: 5px 5px 5px 0;
    font-size: 0.9rem;
}

.remove-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    font-size: 1rem;
    width: 18px;
    height: 18px;
    line-height: 16px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.remove-tag:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

/* Sort options */
.sort-options {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-options span {
    font-weight: 600;
    color: #555;
}

.sort-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sort-btn {
    background-color: #f1f3f5;
    border: none;
    border-radius: var(--input-radius);
    padding: 8px 15px;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sort-btn:hover {
    background-color: #e9ecef;
    color: var(--primary-color);
}

.sort-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.sort-btn i {
    font-size: 0.9rem;
}

/* Advanced filters with button directly below */
#advancedFilters {
    margin-bottom: 20px;
}

/* Center the form action button */
.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.form-actions .primary-button {
    min-width: 220px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    width: 80%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalopen 0.4s;
    border: 1px solid rgba(0,0,0,0.1);
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-30px);}
    to {opacity: 1; transform: translateY(0);}
}

.close {
    color: #aaa;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    z-index: 10;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover,
.close:focus {
    color: var(--primary-color);
    background: white;
    transform: rotate(90deg);
}

/* Animation keyframes */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeUp {
    from { 
        opacity: 0;
        transform: translateY(15px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ripple {
    to {
        transform: scale(15);
        opacity: 0;
    }
}

/* Ripple effect for buttons */
.view-profile-btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 10px;
    height: 10px;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

/* Save button animation */
.save-match-btn.saved {
    animation: pulse 0.5s ease;
}

/* Add improved responsive styles */
@media (max-width: 768px) {
    .matches-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .match-card {
        min-height: 350px;
    }
    
    .match-card-header {
        padding: 20px 15px;
        min-height: 140px;
    }
    
    .match-avatar {
        width: 60px;
        height: 60px;
    }
    
    .match-avatar span {
        font-size: 1.5rem;
    }
    
    .match-name {
        font-size: 1.1rem;
    }
    
    .match-card-body {
        padding: 15px 12px;
        gap: 12px;
    }
    
    .match-bio {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        max-height: 60px;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 4px 8px;
        max-width: 110px;
    }
}

/* Fix for very small screens */
@media (max-width: 420px) {
    .matches-grid {
        grid-template-columns: 1fr;
    }
    
    .match-card-header {
        padding: 20px 15px 15px;
    }
    
    .match-avatar {
        width: 80px;
        height: 80px;
    }
    
    .skill-tags {
        justify-content: center;
    }
    
    .match-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .save-match-btn {
        width: 100%;
        flex: 1;
    }
}

.match-percentage {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.25);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.match-card:hover .match-percentage {
    transform: rotate(5deg) scale(1.05);
}

.match-location i {
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.95);
}

.match-card-body {
    padding: 18px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: white;
}

.match-skills h4, .match-bio-section h4 {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #444;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.match-bio-section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.match-skills {
    margin-bottom: 0;
}

.skill-tags {
    margin-bottom: 16px;
}

.match-bio {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    padding: 0 2px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.match-stat:hover {
    transform: translateY(-2px);
    background: rgba(78, 66, 212, 0.04);
    border-color: rgba(78, 66, 212, 0.1);
}

.match-stat:hover .match-stat-value {
    transform: translateY(-1px);
}

.match-actions {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: white;
}

/* Match Results Styling */
.matches-section {
    margin-top: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.matches-section.show {
    opacity: 1;
    transform: translateY(0);
}

.matches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.matches-header h2 {
    color: var(--text-color);
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
}

.matches-filters {
    display: flex;
    gap: 15px;
}

.filter-btn {
    background-color: #f5f5f7;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background-color: #e9e9ec;
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.match-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid #eaeaea;
    min-height: 400px;
}

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

.match-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6c5ce7 100%);
    color: white;
    padding: 25px 20px;
    position: relative;
    text-align: center;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.match-avatar {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.match-avatar span {
    font-size: 1.8rem;
    font-weight: 600;
}

.match-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85%;
    line-height: 1.4;
}

.match-location {
    font-size: 0.9rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85%;
    line-height: 1.3;
}

.match-percentage {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.25);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.match-card-body {
    flex: 1;
    padding: 18px 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.match-skills h4,
.match-bio-section h4 {
    color: #333;
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 600;
    padding-left: 8px;
    border-left: 3px solid var(--primary-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background-color: #f5f7ff;
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    display: inline-block;
    border: 1px solid #e4e8f7;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.skill-tag:hover {
    background-color: #e9edfd;
    border-color: #d0d8f3;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(78, 66, 212, 0.1);
}

.match-bio-section {
    flex: 1;
}

.match-bio {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    max-height: 80px;
}

.match-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.match-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.match-stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.match-stat-label {
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
}

.match-actions {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-top: 1px solid #f0f0f0;
}

.view-profile-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    flex: 1;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: background-color 0.2s ease;
}

.view-profile-btn:hover {
    background-color: #3c31be;
}

.save-match-btn {
    background-color: #f5f7ff;
    color: #888;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.save-match-btn:hover {
    background-color: #e9edfd;
    color: var(--primary-color);
}

/* Empty state */
.no-matches {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9fb;
    border-radius: 12px;
    margin-bottom: 30px;
}

.no-matches img {
    width: 120px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-matches h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #444;
}

.no-matches p {
    color: #777;
    max-width: 400px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.try-again-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.try-again-btn:hover {
    background-color: #3c31be;
}

/* Match profile modal */
.match-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.match-profile-modal.show {
    opacity: 1;
    visibility: visible;
}

.match-profile-content {
    background-color: white;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.match-profile-modal.show .match-profile-content {
    transform: translateY(0);
    opacity: 1;
} 