/* ============================================================
   REDD Coaching Portal - CSS
   Clean, friendly, straightforward design
   ============================================================ */

:root {
    --redd-primary: #F97316;
    --redd-primary-dark: #EA580C;
    --redd-primary-light: #FFEDD5;
    --redd-accent: #7C3AED;
    --redd-accent-dark: #6D28D9;
    --redd-accent-light: #EDE9FE;
    --redd-dark: #1D1D1D;
    --redd-gray: #6B7280;
    --redd-light-gray: #F3F4F6;
    --redd-white: #FFFFFF;
    --redd-success: #10B981;
    --redd-warning: #F59E0B;
    --redd-error: #EF4444;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--redd-light-gray);
    color: var(--redd-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   HEADER
   ============================================================ */

.header {
    background: var(--redd-white);
    border-bottom: 1px solid #E5E7EB;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--redd-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--redd-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    color: var(--redd-gray);
    font-size: 14px;
}

.user-name {
    font-weight: 600;
    color: var(--redd-dark);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

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

.btn-secondary {
    background: var(--redd-white);
    color: var(--redd-dark);
    border: 2px solid #E5E7EB;
}

.btn-secondary:hover {
    border-color: var(--redd-primary);
    color: var(--redd-primary);
}

.btn-success {
    background: var(--redd-success);
    color: var(--redd-white);
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--redd-error);
    color: var(--redd-white);
}

.btn-danger:hover {
    background: #DC2626;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    border-radius: var(--radius);
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-icon {
    padding: 8px;
    min-width: 40px;
}

/* ============================================================
   MEETING BUTTON - Extra prominent
   ============================================================ */

.meeting-section {
    background: linear-gradient(135deg, var(--redd-primary) 0%, var(--redd-accent) 100%);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 32px;
    text-align: center;
    color: var(--redd-white);
}

.meeting-section h2 {
    margin-bottom: 8px;
    font-size: 20px;
}

.meeting-section p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.btn-meeting {
    background: var(--redd-white);
    color: var(--redd-primary);
    padding: 20px 48px;
    font-size: 20px;
    font-weight: 700;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.btn-meeting:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    color: var(--redd-primary-dark);
}

/* ============================================================
   CARDS & FOLDERS
   ============================================================ */

.card {
    background: var(--redd-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 16px;
}

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

.card-title {
    font-size: 18px;
    font-weight: 600;
}

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

.folder-card {
    background: var(--redd-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.folder-card:hover {
    border-color: var(--redd-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.folder-icon {
    width: 56px;
    height: 56px;
    background: var(--redd-primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.folder-info {
    flex: 1;
}

.folder-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--redd-dark);
}

.folder-date {
    font-size: 14px;
    color: var(--redd-gray);
}

.folder-count {
    font-size: 13px;
    color: var(--redd-gray);
    margin-top: 8px;
}

/* ============================================================
   FILE LIST
   ============================================================ */

.file-list {
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #E5E7EB;
    gap: 12px;
}

.file-item:last-child {
    border-bottom: none;
}

.file-icon {
    width: 40px;
    height: 40px;
    background: var(--redd-light-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    margin-bottom: 2px;
    word-break: break-all;
}

.file-meta {
    font-size: 13px;
    color: var(--redd-gray);
}

.file-actions {
    display: flex;
    gap: 8px;
}

/* ============================================================
   FORMS
   ============================================================ */

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

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--redd-primary);
}

.form-input::placeholder {
    color: #9CA3AF;
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

.form-hint {
    font-size: 13px;
    color: var(--redd-gray);
    margin-top: 4px;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--redd-primary-light) 0%, var(--redd-accent-light) 100%);
}

.login-box {
    background: var(--redd-white);
    padding: 48px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo .logo-icon {
    width: 64px;
    height: 64px;
    font-size: 28px;
    margin: 0 auto 16px;
}

.login-logo h1 {
    font-size: 28px;
    color: var(--redd-dark);
}

.login-logo p {
    color: var(--redd-gray);
    margin-top: 4px;
}

/* ============================================================
   ALERTS / FLASH MESSAGES
   ============================================================ */

.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
}

/* ============================================================
   PAGE SECTIONS
   ============================================================ */

.page-header {
    padding: 32px 0;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--redd-gray);
    font-size: 16px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--redd-gray);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--redd-primary);
}

.breadcrumb-sep {
    color: #D1D5DB;
}

.section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   UPLOAD AREA
   ============================================================ */

.upload-area {
    border: 2px dashed #D1D5DB;
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.upload-area:hover {
    border-color: var(--redd-primary);
    background: var(--redd-primary-light);
}

.upload-area input[type="file"] {
    display: none;
}

.upload-label {
    cursor: pointer;
    display: block;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.upload-text {
    font-weight: 600;
    margin-bottom: 4px;
}

.upload-hint {
    font-size: 14px;
    color: var(--redd-gray);
}

/* ============================================================
   CLIENT LIST (Admin)
   ============================================================ */

.client-list {
    display: grid;
    gap: 16px;
}

.client-card {
    background: var(--redd-white);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.client-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.client-avatar {
    width: 48px;
    height: 48px;
    background: var(--redd-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--redd-accent);
    font-size: 18px;
}

.client-name {
    font-weight: 600;
    font-size: 16px;
}

.client-email {
    font-size: 14px;
    color: var(--redd-gray);
}

.client-stats {
    text-align: right;
    font-size: 14px;
    color: var(--redd-gray);
}

/* ============================================================
   EMPTY STATES
   ============================================================ */

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--redd-gray);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--redd-dark);
    margin-bottom: 8px;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-between { justify-content: space-between; }
.flex-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .folder-grid {
        grid-template-columns: 1fr;
    }

    .login-box {
        padding: 32px 24px;
        margin: 16px;
    }

    .btn-meeting {
        padding: 16px 32px;
        font-size: 18px;
    }

    .header-content {
        flex-direction: column;
        gap: 12px;
    }

    .file-item {
        flex-wrap: wrap;
    }

    .file-actions {
        width: 100%;
        margin-top: 8px;
    }
}
