/* =============================================
   Education Guide - Styles
   ============================================= */

:root {
    --edu-primary: #2563eb;
    --edu-primary-dark: #1d4ed8;
    --edu-primary-light: #3b82f6;
    --edu-secondary: #64748b;
    --edu-success: #10b981;
    --edu-warning: #f59e0b;
    --edu-error: #ef4444;
    --edu-dark: #1e293b;
    --edu-light: #f8fafc;
    --edu-border: #e2e8f0;
    --edu-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --edu-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --edu-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --edu-radius: 16px;
    --edu-radius-sm: 10px;
    --edu-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body.edu-guide-page {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--edu-light);
    color: var(--edu-dark);
    line-height: 1.6;
}

/* =============================================
   Logo
   ============================================= */

.edu-guide-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--edu-dark);
}

.edu-guide-logo-icon {
    font-size: 32px;
}

.edu-guide-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--edu-primary);
}

/* =============================================
   Auth Pages (Login, Register, Profile)
   ============================================= */

.edu-guide-auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
}

.edu-guide-auth-wrapper {
    width: 100%;
    max-width: 440px;
}

.edu-guide-auth-wrapper.edu-guide-auth-wide {
    max-width: 580px;
}

/* Full page registration form */
.edu-guide-register-page .edu-guide-auth-container {
    align-items: flex-start;
    padding: 20px;
}

.edu-guide-register-page .edu-guide-auth-wrapper {
    max-width: 900px;
}

.edu-guide-register-page .edu-guide-auth-card {
    padding: 30px 40px;
}

.edu-guide-register-page .edu-guide-card-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #1e5a99;
    margin-bottom: 25px;
}

.edu-guide-register-page .edu-guide-card-header h1 {
    color: #1e5a99;
    margin-bottom: 5px;
}

.edu-guide-register-page .edu-guide-card-header p {
    color: #64748b;
    font-size: 15px;
}

.edu-guide-auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.edu-guide-auth-header .edu-guide-logo {
    justify-content: center;
}

.edu-guide-auth-card {
    background: #fff;
    border-radius: var(--edu-radius);
    box-shadow: var(--edu-shadow-lg);
    overflow: hidden;
}

.edu-guide-card-header {
    background: linear-gradient(135deg, var(--edu-primary) 0%, var(--edu-primary-dark) 100%);
    color: #fff;
    padding: 30px;
    text-align: center;
}

.edu-guide-card-header h1 {
    margin: 0 0 10px 0;
    font-size: 26px;
    font-weight: 700;
}

.edu-guide-card-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 15px;
}

.edu-guide-card-footer {
    padding: 20px 30px;
    background: var(--edu-light);
    text-align: center;
    border-top: 1px solid var(--edu-border);
}

.edu-guide-card-footer p {
    margin: 0;
    font-size: 14px;
    color: var(--edu-secondary);
}

.edu-guide-card-footer a {
    color: var(--edu-primary);
    text-decoration: none;
    font-weight: 600;
}

.edu-guide-card-footer a:hover {
    text-decoration: underline;
}

.edu-guide-auth-back {
    text-align: center;
    margin-top: 25px;
}

.edu-guide-auth-back a {
    color: var(--edu-secondary);
    text-decoration: none;
    font-size: 14px;
}

.edu-guide-auth-back a:hover {
    color: var(--edu-primary);
}

/* =============================================
   Forms
   ============================================= */

.edu-guide-form {
    padding: 30px;
}

.edu-guide-form-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--edu-border);
}

.edu-guide-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.edu-guide-form-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--edu-dark);
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
}

.edu-guide-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* 3-column row for registration */
.edu-guide-register-page .edu-guide-form-row {
    grid-template-columns: repeat(3, 1fr);
}

.edu-guide-register-page .edu-guide-form-row.edu-guide-form-row-2 {
    grid-template-columns: repeat(2, 1fr);
}

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

.edu-guide-form-group:last-child {
    margin-bottom: 0;
}

.edu-guide-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--edu-dark);
    margin-bottom: 8px;
}

.edu-guide-form-group label .required {
    color: var(--edu-error);
}

.edu-guide-form-group input,
.edu-guide-form-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid var(--edu-border);
    border-radius: var(--edu-radius-sm);
    background: #fff;
    color: var(--edu-dark);
    transition: var(--edu-transition);
}

.edu-guide-form-group input:focus,
.edu-guide-form-group select:focus {
    outline: none;
    border-color: var(--edu-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.edu-guide-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 44px;
    cursor: pointer;
}

.edu-guide-field-hint {
    display: block;
    font-size: 12px;
    color: var(--edu-secondary);
    margin-top: 6px;
}

.edu-guide-forgot-password {
      text-align: right;
      margin-bottom: 16px;
}

  .edu-guide-forgot-password a {
      font-size: 13px;
      color: var(--edu-primary);
      text-decoration: none;
}

  .edu-guide-forgot-password a:hover {
      color: var(--edu-primary-dark);
      text-decoration: underline;
}

.edu-guide-form-message {
    padding: 12px 16px;
    border-radius: var(--edu-radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.edu-guide-form-message.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.edu-guide-form-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.edu-guide-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* =============================================
   Buttons
   ============================================= */

.edu-guide-btn {
    padding: 14px 24px;
    border-radius: var(--edu-radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--edu-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    white-space: nowrap;
}

.edu-guide-btn-primary {
    background: var(--edu-primary);
    color: #fff;
}

.edu-guide-btn-primary:hover {
    background: var(--edu-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--edu-shadow-md);
}

.edu-guide-btn-secondary {
    background: var(--edu-light);
    color: var(--edu-dark);
    border: 2px solid var(--edu-border);
}

.edu-guide-btn-secondary:hover {
    background: var(--edu-border);
}

.edu-guide-btn-full {
    width: 100%;
}

.edu-guide-btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.edu-guide-btn .btn-loading {
    display: none;
}

.edu-guide-btn.loading .btn-text {
    display: none;
}

.edu-guide-btn.loading .btn-loading {
    display: inline;
}

.edu-guide-btn-expand {
    padding: 10px 18px;
    background: var(--edu-light);
    color: var(--edu-dark);
    border: 1px solid var(--edu-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.edu-guide-btn-expand:hover {
    background: var(--edu-border);
}

.edu-guide-btn-expand[aria-expanded="true"] {
    background: var(--edu-primary);
    color: #fff;
    border-color: var(--edu-primary);
}

.edu-guide-btn-expand[aria-expanded="true"] .edu-guide-icon-chevron {
    transform: rotate(180deg);
}

.edu-guide-icon-chevron {
    transition: transform 0.3s ease;
}

.edu-guide-btn-link {
    padding: 10px 18px;
    background: var(--edu-primary);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.edu-guide-btn-link:hover {
    background: var(--edu-primary-dark);
    color: #fff;
}

/* =============================================
   Dashboard
   ============================================= */

.edu-guide-dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.edu-guide-header {
    background: #fff;
    border-bottom: 1px solid var(--edu-border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.edu-guide-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edu-guide-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.edu-guide-user-name {
    font-weight: 500;
    color: var(--edu-secondary);
}

.edu-guide-main {
    flex: 1;
    padding: 40px 20px;
}

.edu-guide-dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

.edu-guide-welcome-section {
    margin-bottom: 30px;
}

.edu-guide-welcome-section h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--edu-dark);
    margin: 0 0 8px 0;
}

.edu-guide-welcome-section p {
    font-size: 15px;
    color: var(--edu-secondary);
    margin: 0;
}

.edu-guide-dashboard-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 25px;
    align-items: start;
}

/* Cards */
.edu-guide-card {
    background: #fff;
    border-radius: var(--edu-radius);
    box-shadow: var(--edu-shadow);
    overflow: hidden;
}

.edu-guide-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--edu-light);
    border-bottom: 1px solid var(--edu-border);
}

.edu-guide-card-header h2 {
    font-size: 17px;
    font-weight: 600;
    color: var(--edu-dark);
    margin: 0;
}

.edu-guide-card-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.edu-guide-match-count {
    font-size: 13px;
    color: var(--edu-secondary);
    background: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--edu-border);
}

/* Profile Card */
.edu-guide-profile-view {
    padding: 25px;
}

.edu-guide-profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.edu-guide-profile-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edu-guide-profile-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--edu-secondary);
    letter-spacing: 0.5px;
}

.edu-guide-profile-value {
    font-size: 15px;
    color: var(--edu-dark);
    font-weight: 500;
}

.edu-guide-profile-edit {
    padding: 25px;
}

/* Matches */
.edu-guide-matches-content {
    padding: 20px;
}

.edu-guide-programs-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.edu-guide-empty-state {
    text-align: center;
    padding: 40px 20px;
}

.edu-guide-empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.edu-guide-empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--edu-dark);
    margin: 0 0 10px 0;
}

.edu-guide-empty-state p {
    font-size: 14px;
    color: var(--edu-secondary);
    margin: 0;
}

/* =============================================
   Program Cards
   ============================================= */

.edu-guide-program-card {
    background: #fff;
    border: 1px solid var(--edu-border);
    border-radius: var(--edu-radius-sm);
    overflow: hidden;
    transition: var(--edu-transition);
}

.edu-guide-program-card:hover {
    border-color: var(--edu-primary-light);
    box-shadow: var(--edu-shadow-md);
}

.edu-guide-program-main {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.edu-guide-program-content {
    flex: 1;
    min-width: 0;
}

.edu-guide-program-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--edu-dark);
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.edu-guide-program-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 10px;
}

.edu-guide-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--edu-secondary);
}

.edu-guide-meta-item svg {
    color: var(--edu-primary);
    flex-shrink: 0;
}

.edu-guide-program-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Program Details */
.edu-guide-program-details {
    background: var(--edu-light);
    border-top: 1px solid var(--edu-border);
    padding: 20px;
    animation: edu-slideDown 0.3s ease;
}

.edu-guide-program-details[hidden] {
    display: none;
}

@keyframes edu-slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

.edu-guide-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.edu-guide-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edu-guide-detail-full {
    grid-column: 1 / -1;
}

.edu-guide-detail-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--edu-secondary);
    letter-spacing: 0.5px;
}

.edu-guide-detail-value {
    font-size: 14px;
    color: var(--edu-dark);
    line-height: 1.5;
}

/* Badges */
.edu-guide-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.edu-guide-badge-active {
    background: #d1fae5;
    color: #065f46;
}

.edu-guide-badge-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.edu-guide-badge-skills {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 900px) {
    .edu-guide-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .edu-guide-form-row {
        grid-template-columns: 1fr;
    }
    
    .edu-guide-header-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .edu-guide-welcome-section h1 {
        font-size: 24px;
    }
    
    .edu-guide-program-main {
        flex-direction: column;
        align-items: stretch;
    }
    
    .edu-guide-program-actions {
        width: 100%;
    }
    
    .edu-guide-program-actions .edu-guide-btn {
        flex: 1;
    }
    
    .edu-guide-details-grid {
        grid-template-columns: 1fr;
    }
    
    .edu-guide-form-actions {
        flex-direction: column;
    }
    
    .edu-guide-card-header {
        padding: 15px 20px;
    }
}

/* =============================================
   Match Indicator
   ============================================= */

.edu-guide-match-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px 6px 0 0;
    margin: -20px -20px 15px -20px;
}

.edu-guide-match-label {
    opacity: 0.8;
}

.edu-guide-match-excellent {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.edu-guide-match-good {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

.edu-guide-match-medium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

/* =============================================
   Pagination / Load More
   ============================================= */

.edu-guide-pagination {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.edu-guide-pagination-info {
    font-size: 14px;
    color: #64748b;
}

.edu-guide-btn-load-more {
    min-width: 200px;
    justify-content: center;
}

.edu-guide-btn-load-more .btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.edu-guide-spinner {
    animation: edu-spin 1s linear infinite;
}

@keyframes edu-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =============================================
   Registration Form Extended Fields
   ============================================= */

.edu-guide-form-subsection {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
}

.edu-guide-form-subsection h4 {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 15px;
}

.edu-guide-section-hint {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 15px;
}

/* Experience Rows */
.edu-guide-experience-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.edu-guide-row-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: #1e5a99;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    margin-top: 28px;
}

.edu-guide-form-row-experience {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 100px 100px;
    gap: 10px;
}

.edu-guide-form-group-small {
    max-width: 100px;
}

/* Skills Rating */
.edu-guide-skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.edu-guide-skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.edu-guide-skill-label {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

.edu-guide-rating {
    display: flex;
    gap: 5px;
}

.edu-guide-rating-label {
    cursor: pointer;
}

.edu-guide-rating-label input {
    display: none;
}

.edu-guide-rating-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s;
}

.edu-guide-rating-label input:checked + .edu-guide-rating-num {
    background: #1e5a99;
    border-color: #1e5a99;
    color: #fff;
}

.edu-guide-rating-label:hover .edu-guide-rating-num {
    border-color: #1e5a99;
    color: #1e5a99;
}

/* Consent Section */
.edu-guide-form-section-consent {
    background: #fef9e7;
    margin: 20px -30px;
    padding: 20px 30px;
    border-top: 1px solid #f5d678;
    border-bottom: 1px solid #f5d678;
}

.edu-guide-consent-text {
    font-size: 13px;
    color: #7a5c0a;
    margin-bottom: 15px;
    line-height: 1.6;
}

.edu-guide-checkbox-group {
    margin: 0;
}

.edu-guide-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.edu-guide-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #1e5a99;
}

.edu-guide-checkbox-text {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

/* Responsive for registration form */
@media (max-width: 900px) {
    .edu-guide-register-page .edu-guide-auth-wrapper {
        max-width: 100%;
    }
    
    .edu-guide-register-page .edu-guide-form-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .edu-guide-skills-grid {
        grid-template-columns: 1fr;
    }
    
    .edu-guide-form-row-experience {
        grid-template-columns: 1fr 1fr;
    }
    
    .edu-guide-form-group-small {
        max-width: none;
    }
}

@media (max-width: 600px) {
    .edu-guide-register-page .edu-guide-auth-card {
        padding: 20px;
    }
    
    .edu-guide-register-page .edu-guide-form-row {
        grid-template-columns: 1fr;
    }
    
    .edu-guide-experience-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .edu-guide-row-number {
        margin-top: 0;
        margin-bottom: 10px;
    }
    
    .edu-guide-form-row-experience {
        grid-template-columns: 1fr;
    }
    
    .edu-guide-skill-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .edu-guide-form-section-consent {
        margin: 20px -20px;
        padding: 20px;
    }
}

/* Profile Edit Form Rows */
.edu-guide-profile-edit .edu-guide-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

@media (max-width: 600px) {
    .edu-guide-profile-edit .edu-guide-form-row {
        grid-template-columns: 1fr;
    }
}

.edu-guide-profile-edit h3 {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}
