/* ============================================
   STUDENT SERVICES - MAIN STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #f0f4f8;
    min-height: 100vh;
    color: #0b1b2b;
}

/* ============================================
   WRAPPER & LAYOUT
   ============================================ */

.ss-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* ============================================
   NAVIGATION
   ============================================ */

.ss-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ss-nav-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ss-logo {
    font-size: 1.8rem;
    line-height: 1;
}

.ss-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: #0b1b2b;
}

.ss-nav-divider {
    color: #dbe2e9;
    font-size: 1.2rem;
}

.ss-nav-title {
    font-weight: 500;
    color: #4a5b6e;
    font-size: 1rem;
}

.ss-nav-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.ss-nav-btn {
    padding: 0.4rem 1.2rem;
    border: 1.5px solid #dbe2e9;
    background: transparent;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s;
    font-size: 0.9rem;
}

.ss-nav-btn:hover {
    background: #f0f4f8;
    border-color: #b0c4db;
}

/* ============================================
   HEADER
   ============================================ */

.ss-header {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    background: linear-gradient(135deg, #0b1b2b 0%, #1a2f44 100%);
    color: white;
    border-radius: 32px;
    margin-bottom: 2.5rem;
}

.ss-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ss-header p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   ACTION CARDS
   ============================================ */

.ss-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.ss-action-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.ss-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #2d7aff;
}

.ss-action-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.ss-action-card h3 {
    font-size: 1.4rem;
    color: #0b1b2b;
    margin-bottom: 0.3rem;
}

.ss-action-card p {
    color: #4a5b6e;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.ss-action-btn {
    padding: 0.6rem 2rem;
    border: none;
    border-radius: 30px;
    background: #0b1b2b;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.15s;
}

.ss-action-btn:hover {
    background: #1a2f44;
    transform: scale(1.02);
}

/* ============================================
   CONTENT
   ============================================ */

.ss-content {
    min-height: 400px;
}

.ss-section {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.ss-section h2 {
    font-size: 1.8rem;
    color: #0b1b2b;
    margin-bottom: 0.3rem;
}

.ss-section > p {
    color: #4a5b6e;
    margin-bottom: 1.5rem;
}

/* ============================================
   LOGIN PROMPT
   ============================================ */

.ss-login-prompt {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.ss-login-prompt h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.ss-login-prompt p {
    color: #4a5b6e;
    margin-bottom: 1rem;
}

.ss-link {
    color: #2d7aff;
    text-decoration: none;
    font-weight: 600;
}

.ss-link:hover {
    text-decoration: underline;
}

/* ============================================
   FORMS
   ============================================ */

.ss-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ss-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ss-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.ss-form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #1e2e3f;
}

.ss-form-group input,
.ss-form-group select,
.ss-form-group textarea {
    padding: 0.7rem 1rem;
    border: 1.5px solid #dbe2e9;
    border-radius: 12px;
    font-size: 1rem;
    background: #ffffff;
    transition: border 0.15s;
    outline: none;
    width: 100%;
}

.ss-form-group input:focus,
.ss-form-group select:focus,
.ss-form-group textarea:focus {
    border-color: #2d7aff;
    box-shadow: 0 0 0 4px rgba(45, 122, 255, 0.08);
}

.ss-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 0.5rem 0;
}

.ss-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 400;
    font-size: 0.95rem;
    cursor: pointer;
}

.ss-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0b1b2b;
}

/* ============================================
   BUTTONS
   ============================================ */

.ss-btn-primary {
    padding: 0.7rem 2rem;
    border: none;
    border-radius: 30px;
    background: #0b1b2b;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-block;
    text-align: center;
}

.ss-btn-primary:hover {
    background: #1a2f44;
    transform: scale(1.02);
}

.ss-btn-secondary {
    padding: 0.7rem 2rem;
    border: 1.5px solid #dbe2e9;
    border-radius: 30px;
    background: transparent;
    color: #0b1b2b;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-block;
    text-align: center;
}

.ss-btn-secondary:hover {
    background: #f0f4f8;
    border-color: #b0c4db;
}

/* ============================================
   PROVIDER CARDS
   ============================================ */

.ss-provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.ss-provider-card {
    background: #fafbfc;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.15s;
}

.ss-provider-card:hover {
    border-color: #2d7aff;
    box-shadow: 0 4px 12px rgba(45, 122, 255, 0.08);
}

.ss-provider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.ss-provider-header h3 {
    font-size: 1.2rem;
    color: #0b1b2b;
}

.ss-rating {
    background: #f59e0b;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ss-provider-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.ss-provider-details p {
    font-size: 0.95rem;
    color: #1e2e3f;
}

.ss-provider-details .ss-label {
    font-weight: 500;
    color: #4a5b6e;
    margin-right: 0.3rem;
}

.ss-provider-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.ss-provider-actions .ss-btn-primary,
.ss-provider-actions .ss-btn-secondary {
    flex: 1;
    min-width: 100px;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* ============================================
   SEARCH RESULTS
   ============================================ */

.ss-search-results {
    margin-top: 1.5rem;
}

.ss-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: #fafbfc;
    border-radius: 20px;
    border: 1px dashed #dbe2e9;
}

.ss-empty-state h4 {
    font-size: 1.2rem;
    color: #0b1b2b;
    margin-bottom: 0.3rem;
}

.ss-empty-state p {
    color: #4a5b6e;
    margin-bottom: 1rem;
}

/* ============================================
   REQUEST LIST
   ============================================ */

.ss-request-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ss-request-card {
    background: #fafbfc;
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    border: 1px solid #e2e8f0;
}

.ss-request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ss-request-header h4 {
    font-size: 1.1rem;
    color: #0b1b2b;
}

.ss-status {
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.ss-status.pending {
    background: #f59e0b;
}

.ss-status.accepted {
    background: #3b82f6;
}

.ss-status.rejected {
    background: #ef4444;
}

.ss-status.in-progress {
    background: #8b5cf6;
}

.ss-status.completed {
    background: #10b981;
}

.ss-status.cancelled {
    background: #6b7280;
}

.ss-request-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.3rem;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.ss-request-details p {
    color: #1e2e3f;
}

.ss-request-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* ============================================
   SUCCESS MESSAGE
   ============================================ */

.ss-success-message {
    text-align: center;
    padding: 2rem;
}

.ss-success-message h3 {
    font-size: 1.8rem;
    color: #0b1b2b;
    margin-bottom: 0.5rem;
}

.ss-success-message p {
    color: #4a5b6e;
    margin-bottom: 1.5rem;
}

.ss-success-message .ss-btn-primary,
.ss-success-message .ss-btn-secondary {
    margin: 0.3rem;
}

.ss-provider-preview {
    background: #f0f4f8;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem auto;
    max-width: 400px;
    text-align: left;
}

.ss-provider-preview h4 {
    font-size: 1.2rem;
    color: #0b1b2b;
    margin-bottom: 0.3rem;
}

.ss-provider-preview p {
    color: #1e2e3f;
    margin: 0.2rem 0;
}

/* ============================================
   PROFILE MODAL
   ============================================ */

.ss-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
}

.ss-modal.hidden {
    display: none;
}

.ss-modal-content {
    background: white;
    border-radius: 32px;
    padding: 2rem;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: ssModalIn 0.3s ease;
}

@keyframes ssModalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ss-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.15s;
    line-height: 1;
}

.ss-modal-close:hover {
    color: #0b1b2b;
}

/* ============================================
   PROFILE
   ============================================ */

.ss-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ss-profile-header h2 {
    font-size: 1.6rem;
    color: #0b1b2b;
}

.ss-profile-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.ss-profile-details p {
    font-size: 0.95rem;
    color: #1e2e3f;
}

.ss-profile-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

/* ============================================
   REQUEST FORM (inside modal)
   ============================================ */

.ss-request-form h3 {
    margin-bottom: 1rem;
    color: #0b1b2b;
}

.ss-request-form .ss-form {
    gap: 0.8rem;
}

.ss-request-form .ss-btn-primary,
.ss-request-form .ss-btn-secondary {
    width: 100%;
}

.ss-request-form .ss-btn-secondary {
    margin-top: 0.3rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .ss-actions {
        grid-template-columns: 1fr;
    }

    .ss-form-row {
        grid-template-columns: 1fr;
    }

    .ss-header h1 {
        font-size: 2rem;
    }

    .ss-nav {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .ss-nav-left {
        justify-content: center;
    }

    .ss-nav-right {
        justify-content: center;
    }

    .ss-provider-grid {
        grid-template-columns: 1fr;
    }

    .ss-modal-content {
        padding: 1.5rem;
        margin: 0.5rem;
        border-radius: 24px;
    }

    .ss-section {
        padding: 1.2rem;
    }

    .ss-request-details {
        grid-template-columns: 1fr;
    }

    .ss-provider-actions {
        flex-direction: column;
    }

    .ss-provider-actions .ss-btn-primary,
    .ss-provider-actions .ss-btn-secondary {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .ss-wrapper {
        padding: 0.5rem;
    }

    .ss-header {
        padding: 1.5rem 1rem;
    }

    .ss-header h1 {
        font-size: 1.6rem;
    }

    .ss-action-card {
        padding: 1.2rem;
    }

    .ss-nav-btn {
        font-size: 0.8rem;
        padding: 0.3rem 1rem;
    }

    .ss-brand {
        font-size: 1rem;
    }

    .ss-nav-title {
        font-size: 0.85rem;
    }
}