/* Workshop Scheduler Public Styles */
:root {
    --ws-primary: #3b82f6;
    --ws-primary-dark: #2563eb;
    --ws-primary-light: #60a5fa;
    --ws-success: #22c55e;
    --ws-warning: #f59e0b;
    --ws-danger: #ef4444;
    --ws-gray-50: #f8fafc;
    --ws-gray-100: #f1f5f9;
    --ws-gray-200: #e2e8f0;
    --ws-gray-300: #cbd5e1;
    --ws-gray-400: #94a3b8;
    --ws-gray-500: #64748b;
    --ws-gray-600: #475569;
    --ws-gray-700: #334155;
    --ws-gray-800: #1e293b;
    --ws-gray-900: #0f172a;
}

/* Base Container */
.ws-app {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: var(--ws-gray-800);
}

.ws-app * {
    box-sizing: border-box;
}

/* Login Pages */
.ws-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ws-gray-50) 0%, var(--ws-gray-100) 100%);
    padding: 20px;
}

.ws-login-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}

.ws-login-header {
    text-align: center;
    padding: 32px 32px 24px;
}

.ws-login-icon {
    width: 64px;
    height: 64px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.ws-login-icon svg {
    width: 32px;
    height: 32px;
    color: var(--ws-primary);
}

.ws-login-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ws-gray-900);
    margin: 0 0 8px;
}

.ws-login-subtitle {
    font-size: 14px;
    color: var(--ws-gray-500);
    margin: 0;
}

.ws-login-form {
    padding: 0 32px 32px;
}

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

.ws-login-form .ws-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ws-gray-700);
    margin-bottom: 6px;
}

.ws-login-form .ws-form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid var(--ws-gray-300);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.ws-login-form .ws-form-input:focus {
    outline: none;
    border-color: var(--ws-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ws-login-form .ws-input-with-icon {
    position: relative;
}

.ws-login-form .ws-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ws-gray-400);
    pointer-events: none;
}

.ws-login-form .ws-input-icon svg {
    width: 18px;
    height: 18px;
}

.ws-login-form .ws-input-with-icon .ws-form-input {
    padding-left: 44px;
}

.ws-login-form .ws-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ws-gray-400);
    cursor: pointer;
    padding: 0;
}

.ws-login-form .ws-password-toggle:hover {
    color: var(--ws-gray-600);
}

.ws-login-form .ws-password-toggle svg {
    width: 18px;
    height: 18px;
}

.ws-forgot-link {
    display: block;
    text-align: right;
    font-size: 13px;
    color: var(--ws-primary);
    text-decoration: none;
    margin-top: -12px;
    margin-bottom: 20px;
}

.ws-forgot-link:hover {
    text-decoration: underline;
}

.ws-login-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--ws-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ws-login-btn:hover {
    background: var(--ws-primary-dark);
}

.ws-login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ws-login-btn svg {
    width: 18px;
    height: 18px;
}

.ws-login-footer {
    text-align: center;
    padding: 16px 32px 24px;
    font-size: 14px;
    color: var(--ws-gray-500);
}

.ws-login-footer a {
    color: var(--ws-primary);
    text-decoration: none;
}

.ws-login-footer a:hover {
    text-decoration: underline;
}

.ws-login-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--ws-danger);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
}

/* Spinner */
.ws-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ws-spin 1s linear infinite;
}

@keyframes ws-spin {
    to { transform: rotate(360deg); }
}

/* Dashboard */
.ws-dashboard {
    min-height: 100vh;
    background: var(--ws-gray-50);
}

.ws-dashboard-header {
    background: #fff;
    border-bottom: 1px solid var(--ws-gray-200);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ws-dashboard-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ws-dashboard-logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ws-primary);
}

.ws-dashboard-logo-icon svg {
    width: 24px;
    height: 24px;
}

.ws-dashboard-logo h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ws-gray-900);
    margin: 0;
}

.ws-dashboard-logo span {
    font-size: 12px;
    color: var(--ws-gray-500);
}

.ws-dashboard-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ws-dashboard-user-info {
    text-align: right;
}

.ws-dashboard-user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--ws-gray-800);
}

.ws-dashboard-user-email {
    font-size: 12px;
    color: var(--ws-gray-500);
}

.ws-logout-btn {
    padding: 8px 16px;
    background: var(--ws-gray-100);
    color: var(--ws-gray-700);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.ws-logout-btn:hover {
    background: var(--ws-gray-200);
}

.ws-logout-btn svg {
    width: 16px;
    height: 16px;
}

/* Stats */
.ws-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    padding: 24px;
    background: #fff;
    border-bottom: 1px solid var(--ws-gray-200);
}

.ws-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ws-stat-label {
    font-size: 13px;
    color: var(--ws-gray-500);
}

.ws-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--ws-gray-900);
}

.ws-stat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-stat-icon-wrap.blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--ws-primary);
}

.ws-stat-icon-wrap.green {
    background: rgba(34, 197, 94, 0.1);
    color: var(--ws-success);
}

.ws-stat-icon-wrap.orange {
    background: rgba(245, 158, 11, 0.1);
    color: var(--ws-warning);
}

.ws-stat-icon-wrap svg {
    width: 24px;
    height: 24px;
}

/* Calendar Public */
.ws-calendar-public {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 24px;
    overflow: hidden;
}

.ws-calendar-header-public {
    padding: 20px 24px;
    background: var(--ws-gray-50);
    border-bottom: 1px solid var(--ws-gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ws-calendar-title-public {
    font-size: 20px;
    font-weight: 600;
    color: var(--ws-gray-800);
}

.ws-calendar-nav-btn {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--ws-gray-300);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ws-calendar-nav-btn:hover {
    background: var(--ws-gray-100);
}

.ws-calendar-nav-btn svg {
    width: 16px;
    height: 16px;
}

.ws-calendar-grid-public {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.ws-calendar-weekday {
    padding: 16px 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--ws-gray-500);
    text-transform: uppercase;
    background: var(--ws-gray-50);
    border-bottom: 1px solid var(--ws-gray-200);
}

.ws-calendar-cell {
    min-height: 120px;
    padding: 8px;
    border-right: 1px solid var(--ws-gray-200);
    border-bottom: 1px solid var(--ws-gray-200);
    cursor: pointer;
    transition: background 0.2s ease;
}

.ws-calendar-cell:nth-child(7n) {
    border-right: none;
}

.ws-calendar-cell:hover {
    background: var(--ws-gray-50);
}

.ws-calendar-cell.other-month {
    background: var(--ws-gray-50);
}

.ws-calendar-cell.other-month .ws-calendar-date {
    color: var(--ws-gray-400);
}

.ws-calendar-cell.today .ws-calendar-date {
    background: var(--ws-primary);
    color: #fff;
}

.ws-calendar-date {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--ws-gray-700);
    border-radius: 50%;
    margin-bottom: 8px;
}

.ws-calendar-event-public {
    background: var(--ws-primary);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.ws-calendar-event-public:hover {
    background: var(--ws-primary-dark);
}

/* Workshop Detail Modal */
.ws-modal-public {
    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: 99999;
    padding: 20px;
}

.ws-modal-content-public {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.ws-modal-header-public {
    padding: 20px 24px;
    border-bottom: 1px solid var(--ws-gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ws-modal-title-public {
    font-size: 18px;
    font-weight: 600;
    color: var(--ws-gray-900);
    margin: 0;
}

.ws-modal-close-public {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--ws-gray-400);
    cursor: pointer;
}

.ws-modal-close-public:hover {
    color: var(--ws-gray-600);
}

.ws-modal-body-public {
    padding: 24px;
}

.ws-detail-row {
    display: flex;
    margin-bottom: 16px;
}

.ws-detail-label {
    width: 120px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ws-gray-500);
}

.ws-detail-value {
    flex: 1;
    font-size: 14px;
    color: var(--ws-gray-800);
}

/* Status badges in public view */
.ws-status-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

.ws-status-scheduled {
    background: rgba(59, 130, 246, 0.1);
    color: var(--ws-primary);
}

.ws-status-completed {
    background: rgba(34, 197, 94, 0.1);
    color: var(--ws-success);
}

.ws-status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--ws-danger);
}

/* View Tabs */
.ws-view-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid var(--ws-gray-200);
}

.ws-view-tab {
    padding: 8px 16px;
    background: var(--ws-gray-100);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ws-gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.ws-view-tab:hover {
    background: var(--ws-gray-200);
}

.ws-view-tab.active {
    background: var(--ws-primary);
    color: #fff;
}

.ws-view-tab svg {
    width: 16px;
    height: 16px;
}

/* Workshop List View */
.ws-workshop-list {
    padding: 24px;
}

.ws-workshop-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 16px;
    border-left: 4px solid var(--ws-primary);
}

.ws-workshop-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.ws-workshop-type {
    font-size: 16px;
    font-weight: 600;
    color: var(--ws-gray-900);
}

.ws-workshop-school {
    font-size: 14px;
    color: var(--ws-gray-600);
}

.ws-workshop-card-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ws-workshop-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ws-gray-600);
}

.ws-workshop-info-item svg {
    width: 16px;
    height: 16px;
    color: var(--ws-gray-400);
}

/* Empty State */
.ws-empty-state-public {
    text-align: center;
    padding: 60px 20px;
}

.ws-empty-icon-public {
    width: 64px;
    height: 64px;
    background: var(--ws-gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--ws-gray-400);
}

.ws-empty-icon-public svg {
    width: 32px;
    height: 32px;
}

.ws-empty-title-public {
    font-size: 18px;
    font-weight: 600;
    color: var(--ws-gray-700);
    margin-bottom: 8px;
}

.ws-empty-text-public {
    font-size: 14px;
    color: var(--ws-gray-500);
}

/* Responsive */
@media (max-width: 768px) {
    .ws-calendar-cell {
        min-height: 80px;
        padding: 4px;
    }
    
    .ws-calendar-date {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .ws-calendar-event-public {
        font-size: 10px;
        padding: 2px 4px;
    }
    
    .ws-workshop-card-body {
        grid-template-columns: 1fr;
    }
    
    .ws-dashboard-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .ws-dashboard-user-info {
        text-align: center;
    }
}
