/* ========== THEME ========== */
:root{
  --bg:#f7f9fc;
  --surface:#ffffff;
  --text:#0f172a;
  --muted:#6b7280;
  --line:#e5e7eb;

  --nav:#1f2a44;
  --nav-text:#e5e7f3;
  --nav-active:#ffffff;

  --blue:#2563eb;
  --purple:#6366f1;
  --yellow:#f59e0b;
  --green:#22c55e;
  --slate:#111827;
  --warning:#f59e0b;
  --shadow:0 10px 25px rgba(2,8,23,0.06);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.45;
}

/* Login Page */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.suggestions {
    position: absolute;
    background: white;
    border: 1px solid var(--line);
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--line);
}

.suggestion-item:hover {
    background: var(--bg);
}

.form-group {
    position: relative;
    width: 100%;
}

.login-container h1 {
    margin-bottom: 30px;
    color: var(--text);
    font-weight: 800;
}

#loginForm {
    background: var(--surface);
    padding: 30px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--line);
}

#loginForm input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 16px;
    background: var(--surface);
}

#loginForm {
    position: relative;
}

#loginForm button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg,var(--blue),#3b82f6);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(37,99,235,.25);
}

#loginForm button:hover {
    filter: brightness(1.03);
}

.error {
    color: #e74c3c;
    margin-top: 10px;
    text-align: center;
}

/* Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav);
    padding: 20px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    color: var(--nav-text);
}

header h1 {
    color: white;
    font-weight: 800;
    margin: 0;
}

.logout-btn {
    background-color: #e74c3c;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
}

.admin-btn {
    background-color: var(--purple);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 10px;
    margin-right: 10px;
    font-weight: 600;
}

/* Modern Dashboard Layout */
.modern-dashboard {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
    width: 100%;
}

@media (max-width: 768px) {
    .modern-dashboard {
        flex-direction: column;
    }
}

/* Sidebar */
.sidebar {
    width: 300px;
    background: var(--nav);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.brand-logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 10px 1.5rem;
    color: var(--nav-text);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    margin: 0.5rem 0;
    border-radius: 0 25px 25px 0;
}

.nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.nav-item.active {
    background: rgba(59,130,246,0.1);
    border-left-color: var(--blue);
    color: white;
}

.nav-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.nav-text {
    font-weight: 500;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
}

.logout-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: #c0392b;
}

/* Top Header */
.top-header {
    display: flex;
    justify-content: flex-end;
    padding: 0;
    margin-bottom: 0;
}

.user-profile-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar-top {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.user-name-top {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    text-align: center;
}

.user-role-top {
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 500;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 300px;
    padding: 1rem 2rem;
    min-height: 100vh;
    width: 100%;
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
}

/* Cards */
.status-form {
    background: var(--surface);
    padding: 20px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 1px solid var(--line);
}

.status-form h2 {
    margin-bottom: 15px;
    color: var(--text);
    font-weight: 800;
}

.status-feed-container {
    background: var(--surface);
    padding: 20px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.status-feed-container h2 {
    margin-bottom: 20px;
    color: var(--text);
    font-weight: 800;
}

.admin-section {
    background: var(--surface);
    padding: 20px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 1px solid var(--line);
}

.admin-section h2 {
    margin-bottom: 15px;
    color: var(--text);
    font-weight: 800;
}

.status-card {
    border-left: 4px solid var(--blue);
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8fafc;
    border-radius: 0 10px 10px 0;
    border: 1px solid var(--line);
}

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

.status-author {
    font-weight: 700;
    color: var(--text);
}

.status-time {
    color: var(--muted);
    font-size: 14px;
}

.status-message {
    color: var(--text);
    line-height: 1.4;
}

.status-message ul {
    padding-left: 20px;
    margin: 10px 0;
}

.status-message li {
    margin-bottom: 5px;
}

.status-message img {
    max-width: 100%;
    height: auto;
    margin: 5px 0;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.status-message img:hover {
    transform: scale(1.05);
}

.location {
    color: var(--muted);
    font-size: 12px;
    margin-top: 5px;
}

/* Rich Text Editor */
.editor-toolbar {
    border: 1px solid var(--line);
    border-bottom: none;
    padding: 8px;
    background: #f8fafc;
    border-radius: 10px 10px 0 0;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.editor-toolbar button {
    background: white;
    border: 1px solid var(--line);
    padding: 6px 10px;
    margin-right: 5px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.editor-toolbar button:hover {
    background: #f1f5f9;
}

#editor {
    min-height: 100px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 0 0 10px 10px;
    background: white;
    outline: none;
}

#editor:empty:before {
    content: attr(placeholder);
    color: var(--muted);
}

#editor ul {
    padding-left: 20px;
}

#editor li {
    margin-bottom: 5px;
}

#editor img {
    max-width: 300px;
    height: auto;
    margin: 5px;
    border-radius: 10px;
    display: block;
}

#statusForm button {
    background: linear-gradient(90deg,var(--green),#16a34a);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(34,197,94,.25);
}

#statusForm button:hover {
    filter: brightness(1.03);
}

/* Admin Styles */
.create-user-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: center;
}

.create-user-form input,
.create-user-form .role-select {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    font-size: 14px;
    color: var(--text);
}

.create-user-form .role-select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px;
    cursor: pointer;
}

.create-user-form .role-select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.create-user-form button {
    padding: 10px 20px;
    background: linear-gradient(90deg,var(--green),#16a34a);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.create-user-form button:hover {
    filter: brightness(1.03);
}

#create-message {
    margin-top: 10px;
}

.success {
    color: var(--green);
    font-weight: 600;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.user-card {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--purple);
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
    border: 1px solid var(--line);
}

.user-card:hover {
    background: #f1f5f9;
}

.user-card strong {
    color: var(--text);
    font-weight: 700;
}

.user-card span {
    color: var(--muted);
    font-size: 14px;
}

.user-card small {
    color: var(--muted);
    font-size: 12px;
}

.admin-controls {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.view-btn {
    background-color: var(--slate);
    color: white;
    border: none;
    padding: 8px 16px;
    margin-right: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

.view-btn:hover {
    filter: brightness(1.1);
}

#back-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 15px;
    font-weight: 600;
}

#back-btn:hover {
    filter: brightness(1.1);
}

.week-header {
    background: var(--blue);
    color: white;
    padding: 10px 15px;
    margin: 20px 0 10px 0;
    border-radius: 10px;
}

.week-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.day-header {
    background: var(--green);
    color: white;
    padding: 8px 15px;
    margin: 15px 0 5px 0;
    border-radius: 10px;
}

.day-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.user-week-header {
    background: #e67e22;
    color: white;
    padding: 6px 15px;
    margin: 10px 0 5px 0;
    border-radius: 10px;
}

.user-week-header h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}

.status-card.compact {
    margin-left: 20px;
    border-left-color: var(--muted);
}

/* User Card with Buttons */
.user-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: var(--surface);
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.user-card .user-info strong {
    font-size: 1.1rem;
    color: var(--text);
}

.user-card .user-info span {
    color: var(--muted);
    font-size: 0.9rem;
}

.user-card .user-info small {
    color: var(--muted);
    font-size: 0.8rem;
}

.user-actions {
    display: flex;
    gap: 0.3rem;
    align-items: flex-start;
}

.assign-btn, .reset-password-btn, .delete-user-btn {
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.assign-btn {
    background: #28a745;
    color: white;
}

.assign-btn:hover {
    background: #218838;
}

.reset-password-btn {
    background: #007bff;
    color: white;
}

.reset-password-btn:hover {
    background: #0056b3;
}

.delete-user-btn {
    background: #dc3545;
    color: white;
}

.delete-user-btn:hover {
    background: #c82333;
}

.role-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white !important;
    display: inline-block;
}

.role-user { background: #6c757d !important; }
.role-tl { background: #17a2b8 !important; }
.role-manager { background: #ffc107 !important; color: #000 !important; }
.role-admin { background: #dc3545 !important; }



.assign-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 5px;
}

.assign-btn:hover {
    background: #218838;
}

.role-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
}

.role-user { background: #6c757d; }
.role-tl { background: #17a2b8; }
.role-manager { background: #ffc107; color: #000; }
.role-admin { background: #dc3545; }

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95vw;
    max-height: 95vh;
    overflow: auto;
}

.modal-content img {
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

/* Status Date */
.status-date {
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--line);
    color: var(--text);
}

.status-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.status-view-header h2 {
    margin: 0;
    color: var(--text);
    font-weight: 800;
}

.view-toggle {
    display: flex;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.toggle-btn {
    background: var(--bg);
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    transition: all 0.2s;
}

.toggle-btn.active {
    background: var(--blue);
    color: white;
}

.toggle-btn:hover:not(.active) {
    background: var(--surface);
    color: var(--text);
}

.week-cards-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.day-status-card {
    background: var(--bg);
    border: 2px solid var(--line);
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.day-status-card.submitted {
    background: #dcfce7;
    border-color: var(--green);
    color: #166534;
}

.day-status-card.pending {
    background: #fef3c7;
    border-color: var(--warning);
    color: #92400e;
}

.day-status-card.not-filled {
    background: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}

.day-status-card.today {
    box-shadow: 0 0 0 2px var(--blue);
}

.day-status-card.weekend {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.day-status-card.weekend.submitted {
    background: #e8f5e8;
}

.day-status-card.weekend.pending {
    background: #fff8e1;
}

.day-status-card.weekend.not-filled {
    background: #ffeaea;
}

.day-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.day-date {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.day-status {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .week-cards-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .day-status-card {
        padding: 8px 4px;
    }
    
    .day-name {
        font-size: 12px;
    }
    
    .day-date {
        font-size: 16px;
    }
    
    .day-status {
        font-size: 11px;
    }
}

/* Reminder Alert */
.reminder-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--warning);
    color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 300px;
    animation: slideIn 0.3s ease;
}

.reminder-content button {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: 600;
}

.reminder-content button:hover {
    background: rgba(255,255,255,0.3);
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Top.co Inspired Landing Page */
.top-landing {
    background: #0a0a0a;
    color: white;
    min-height: 100vh;
}

.top-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.2rem;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border-radius: 50%;
}

.brand {
    color: white;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: white;
}

.nav-cta {
    background: linear-gradient(135deg, #00d4ff, #0099cc) !important;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
}

.top-hero {
    padding: 8rem 2rem 4rem;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--blue), #3b82f6);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #1d4ed8, var(--blue));
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn-primary.large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #00d4ff;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.dashboard-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
}

.preview-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    display: flex;
    align-items: center;
}

.preview-dots {
    display: flex;
    gap: 0.5rem;
}

.preview-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.preview-content {
    padding: 1.5rem;
}

.preview-nav {
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.preview-cards {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.preview-card {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.top-features {
    padding: 6rem 2rem;
    background: #111;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.top-pricing {
    padding: 6rem 2rem;
    background: #0a0a0a;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s;
    color: white;
}

.pricing-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.pricing-card.featured {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.05);
    color: white;
}

.pricing-card * {
    color: white !important;
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white !important;
}

.plan-price {
    margin-bottom: 2rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: #00d4ff !important;
}

.period {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.plan-features li {
    padding: 0.5rem 0;
    color: white !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li::before {
    content: '✓';
    color: #00d4ff;
    font-weight: bold;
    margin-right: 0.5rem;
}

.plan-btn {
    display: block;
    text-align: center;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.plan-btn:hover {
    background: black;
    color: white;
    border-color: black;
    transform: translateY(-2px);
}

.plan-btn.primary {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border-color: transparent;
}

.plan-btn.primary:hover {
    background: black;
    color: white;
}

.top-cta {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 153, 204, 0.1));
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.top-footer {
    background: #111;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-column h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        gap: 2rem;
    }
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--surface);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--blue);
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
    color: white;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.features {
    padding: 4rem 2rem;
    background: var(--surface);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--text);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--text);
}

.feature-card p {
    color: var(--muted);
    line-height: 1.6;
}

.pricing {
    padding: 4rem 2rem;
    background: var(--bg);
}

.pricing h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--text);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.pricing-card--featured {
    border: 2px solid var(--blue);
    transform: scale(1.05);
}

.pricing-card--featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 1rem;
}

.price span {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 400;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.pricing-card li {
    padding: 0.5rem 0;
    color: var(--text);
    border-bottom: 1px solid var(--line);
}

.pricing-card li:last-child {
    border-bottom: none;
}

.pricing-card li::before {
    content: '✓';
    color: var(--green);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .features h2,
    .pricing h2 {
        font-size: 2rem;
    }
    
    .pricing-card--featured {
        transform: none;
    }
    
    .landing-nav {
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .profile-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .avatar-circle.large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .profile-details h3 {
        font-size: 1.5rem;
    }
    
    #changePasswordForm,
    #adminResetPasswordForm {
        max-width: 100%;
    }
}

/* Pending Submissions */
.view-btn--warning {
    background: linear-gradient(90deg,var(--warning),#fbbf24);
    color: var(--slate);
}

.pending-summary {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    color: var(--slate);
}

.pending-user-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
}

.pending-user-info strong {
    color: var(--slate);
    font-weight: 700;
}

.pending-user-info span {
    color: var(--muted);
    font-size: 14px;
    margin-left: 10px;
}

.pending-status {
    color: var(--warning);
    font-weight: 600;
    font-size: 14px;
}

.all-submitted {
    text-align: center;
    background: #dcfce7;
    border: 1px solid var(--green);
    border-radius: 10px;
    padding: 30px;
    color: var(--slate);
    font-size: 18px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 10px;
    }
    
    header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .create-user-form {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .create-user-form .role-select {
        background-position: right 10px center;
    }
    
    .users-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-controls {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .view-btn {
        width: 100%;
    }
    
    #editor {
        min-height: 80px;
    }
    
    .editor-toolbar {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .editor-toolbar button {
        flex: 1;
        min-width: 60px;
    }
}

/* Month Calendar */
.month-calendar {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    gap: 2px;
    background: var(--line);
    border-radius: 8px;
    padding: 2px;
}

.week-number-cell {
    background: var(--blue);
    color: white;
    padding: 8px 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.month-header {
    background: var(--blue);
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    grid-column: 1 / -1;
    margin-bottom: 2px;
}

.day-header-cell {
    background: var(--bg);
    padding: 8px 4px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

.month-day-cell {
    background: var(--surface);
    padding: 8px 4px;
    text-align: center;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.month-day-cell.other-month {
    background: var(--bg);
    color: var(--muted);
    opacity: 0.5;
}

.month-day-cell.today {
    background: var(--blue);
    color: white;
    font-weight: 700;
}

.month-day-cell.submitted {
    background: #dcfce7;
    color: #166534;
    border: 2px solid var(--green);
}

.month-day-cell.pending {
    background: #fef3c7;
    color: #92400e;
    border: 2px solid var(--warning);
}

.month-day-cell.not-filled {
    background: #fef2f2;
    color: #dc2626;
    border: 2px solid #ef4444;
}

.month-day-cell.weekend {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.month-day-cell.weekend.submitted {
    background: #e8f5e8;
}

.month-day-cell.weekend.pending {
    background: #fff8e1;
}

.month-day-cell.weekend.not-filled {
    background: #ffeaea;
}

.month-day-number {
    font-size: 16px;
    font-weight: 600;
}

.month-day-status {
    font-size: 12px;
    margin-top: 2px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .status-view-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .month-day-cell {
        min-height: 35px;
        padding: 4px 2px;
    }
    
    .month-day-number {
        font-size: 14px;
    }
    
    .month-day-status {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: 5px;
    }
    
    .status-card {
        padding: 10px;
    }
    
    .status-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .week-header h3,
    .day-header h4 {
        font-size: 14px;
    }
    
    .week-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .month-day-cell {
        min-height: 30px;
        padding: 2px 1px;
    }
    
    .month-day-number {
        font-size: 13px;
    }
    
    .month-day-status {
        display: none;
    }
}

/* Signup Page Styles */
.signup-container {
    background: linear-gradient(135deg, var(--bg) 0%, #e0f2fe 100%);
}

.signup-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 14px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--line);
}

.signup-card h1 {
    text-align: center;
    color: var(--text);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.signup-card p {
    text-align: center;
    color: var(--muted);
    margin-bottom: 2rem;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.form-group input {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 16px;
    background: var(--surface);
}

.subdomain-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
}

.subdomain-input input {
    border: none;
    flex: 1;
    padding: 12px;
    background: transparent;
}

.subdomain-input span {
    padding: 12px;
    color: var(--muted);
    background: var(--bg);
    border-left: 1px solid var(--line);
}

.plan-info {
    background: var(--bg);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    margin: 1rem 0;
}

.plan-info strong {
    color: var(--text);
}

.plan-info p {
    margin: 0.5rem 0 0 0;
    color: var(--muted);
    text-align: left;
}

.login-link {
    text-align: center;
    margin-top: 1rem;
    color: var(--muted);
}

.login-link a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

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

/* Comments Styles */
.comments-section {
    margin-top: 1rem;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
}

.comment {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.role-badge {
    background: var(--blue);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.comment-time {
    color: var(--muted);
    font-size: 0.8rem;
    margin-left: auto;
}

.comment-text {
    color: var(--text);
    line-height: 1.4;
}

.comment-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.comment-form textarea {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    resize: vertical;
    font-family: inherit;
}

.comment-btn {
    background: linear-gradient(90deg, var(--blue), #3b82f6);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.comment-btn:hover {
    background: linear-gradient(90deg, #1d4ed8, var(--blue));
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

/* Status Tabs */
.status-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

.tab-btn:hover {
    color: var(--text);
}

/* Header Structure */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.header-left h1 {
    margin: 0;
}

.header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Main Tab System */
.header-tabs {
    display: flex;
    gap: 0;
}

.header-tab {
    background: transparent;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--muted);
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.header-tab.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
    background: rgba(0, 123, 255, 0.05);
}

.header-tab:hover {
    color: var(--text);
    background: rgba(0, 123, 255, 0.03);
}

.main-tab-content {
    display: none;
    padding: 2rem 0;
}

.main-tab-content.active {
    display: block;
}

.team-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: white;
    border-radius: 12px;
}

.team-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
}

.team-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Team Navigation */
.team-navigation {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
    border-bottom: 1px solid var(--line);
}

.team-nav-btn {
    background: transparent;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.team-nav-btn.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

.team-nav-btn:hover {
    color: var(--text);
}

.team-view {
    display: none;
}

.team-view.active {
    display: block;
}

/* Status Indicators */
.status-indicator {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.status-indicator.submitted {
    background: #d4edda;
    color: #155724;
}

.status-indicator.pending {
    background: #fff3cd;
    color: #856404;
}

/* View Button */
.view-btn {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Member Detail Sections */
.member-info-section {
    margin-bottom: 2rem;
}

.member-details-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.member-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 800;
}

.member-basic-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: var(--text);
}

.member-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.member-stats span {
    color: var(--muted);
    font-size: 0.9rem;
}

.member-status-section {
    background: var(--bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.member-status-section h3 {
    margin: 0 0 1.5rem 0;
    color: var(--text);
    font-size: 1.3rem;
}

/* Team Status Section */
.team-status-section {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--line);
}

.team-status-section h2 {
    margin: 0 0 1.5rem 0;
    color: var(--text);
    font-size: 1.5rem;
}

/* Missed Days Alert */
.missed-days-alert {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-icon {
    font-size: 1.5rem;
}

.alert-text strong {
    color: #856404;
    display: block;
    margin-bottom: 0.5rem;
}

.alert-text p {
    color: #856404;
    margin: 0;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #856404;
    margin-left: auto;
}

/* Missed Status Section */
.missed-status-section {
    margin-bottom: 2rem;
    padding: 2rem;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 12px;
}

.missed-status-section h2 {
    margin: 0 0 1.5rem 0;
    color: #c53030;
    font-size: 1.5rem;
}

.missed-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.missed-details {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.missed-count {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.missed-count.critical {
    background: #fed7d7;
    color: #c53030;
}

.missed-count.warning {
    background: #fef5e7;
    color: #d69e2e;
}

.missed-count.mild {
    background: #fff3cd;
    color: #856404;
}

.submitted-count {
    color: var(--muted);
    font-size: 0.8rem;
}

.remind-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.remind-btn:hover {
    background: #c53030;
}

.no-missed {
    text-align: center;
    color: #38a169;
    font-weight: 600;
    padding: 2rem;
    margin: 0;
}

/* No Status Today */
.no-status-today {
    text-align: center;
    color: #d69e2e;
    font-weight: 600;
    padding: 3rem;
    background: #fef5e7;
    border: 1px solid #f6e05e;
    border-radius: 8px;
    font-size: 1.1rem;
}

.member-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.back-btn {
    background: linear-gradient(90deg, var(--blue), #3b82f6);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.back-btn:hover {
    background: linear-gradient(90deg, #1d4ed8, var(--blue));
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.no-data {
    text-align: center;
    color: var(--muted);
    font-style: italic;
    padding: 2rem;
}

/* Users Table */
.users-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.users-table th,
.users-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.users-table th {
    background: var(--bg);
    font-weight: 600;
    color: var(--text);
}

.users-table tr:hover {
    background: var(--bg);
}

.table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.table-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: white;
    transition: all 0.2s;
}

.table-actions button:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.manager-select {
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 12px;
    background: var(--surface);
    color: var(--text);
    min-width: 120px;
}

/* Page Header */
.page-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
}

.page-header h1 {
    margin: 0 0 0.5rem 0;
    color: var(--text);
    font-size: 1.8rem;
    font-weight: 700;
}

.page-header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* New Dashboard Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}

.metric-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.metric-card.today-status {
    border-left: 4px solid var(--warning);
}

.metric-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.metric-label {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 2rem;
}

.quick-actions h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--bg);
    transform: translateY(-1px);
}

.action-btn.primary {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

.action-btn.primary:hover {
    background: var(--purple);
}

.btn-icon {
    font-size: 1.2rem;
}

/* Recent Activity */
.recent-activity {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.5rem;
}

.recent-activity h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

/* Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background: var(--surface);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem;
    border-radius: 12px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted);
}

.close:hover {
    color: var(--text);
}



.assignment-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.assignment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.assignment-header h3 {
    margin: 0;
    color: var(--text);
}

.assignment-status {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.assignment-status.submitted {
    background: #d4edda;
    color: #155724;
}

.assignment-status.pending {
    background: #fff3cd;
    color: #856404;
}

.assignment-status.overdue {
    background: #f8d7da;
    color: #721c24;
}

/* Status badges for table */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.status-badge.submitted {
    background: #dcfce7;
    color: #166534;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.overdue {
    background: #fee2e2;
    color: #991b1b;
}

.assignment-description {
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.assignment-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.assignment-actions {
    display: flex;
    gap: 0.5rem;
}

.submit-btn {
    background: var(--green);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.submit-btn:hover {
    background: #16a34a;
}

.view-btn {
    background: linear-gradient(90deg, var(--blue), #3b82f6);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.view-btn:hover {
    background: linear-gradient(90deg, #1d4ed8, var(--blue));
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

/* Calendar Navigation */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--line);
}

.nav-btn {
    background: linear-gradient(90deg, var(--blue), #3b82f6);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.nav-btn:hover {
    background: linear-gradient(90deg, #1d4ed8, var(--blue));
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

#calendar-period, #team-calendar-period {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}

/* Work Week Calendar */
.work-week-calendar {
    background: var(--surface);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--line);
}

.work-week-header {
    background: var(--blue);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    margin-bottom: 20px;
}

.work-week-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
}

.work-week-day {
    background: var(--bg);
    border: 2px solid var(--line);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.work-week-day.submitted {
    background: #dcfce7;
    border-color: var(--green);
    color: #166534;
}

.work-week-day.pending {
    background: #fef3c7;
    border-color: var(--warning);
    color: #92400e;
}

.work-week-day.not-filled {
    background: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}

.work-week-day.today {
    box-shadow: 0 0 0 3px var(--blue);
    transform: scale(1.05);
}

.work-week-day.weekend {
    opacity: 0.7;
}

.work-week-day .day-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.work-week-day .day-date {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.work-week-day .day-status {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Activity Log Modal */
.activity-item {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

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

.activity-time {
    color: var(--muted);
    font-size: 12px;
}

.activity-description {
    color: var(--text);
    font-size: 14px;
    margin-bottom: 8px;
}

.activity-actions {
    margin-top: 8px;
}

.activity-link {
    background: var(--blue);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.activity-link:hover {
    background: var(--purple);
    color: white;
}

/* Status Filled Modal */
.status-filled-modal {
    text-align: center;
    max-width: 400px;
}

.status-filled-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.status-filled-modal h2 {
    color: var(--green);
    margin-bottom: 1rem;
}

.status-filled-modal p {
    color: var(--text);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.status-filled-modal .btn {
    padding: 12px 24px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

/* Assignment create form */
.assignment-create-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.assignment-create-form input,
.assignment-create-form textarea,
.assignment-create-form select {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    font-size: 14px;
    color: var(--text);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: center;
}

.form-row button {
    padding: 12px 20px;
    background: linear-gradient(90deg,var(--blue),#3b82f6);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}
.assignment-details {
    max-width: 100%;
    margin: 20px 0;
}

.detail-row {
    margin-bottom: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row strong {
    color: var(--dark);
    display: inline-block;
    min-width: 120px;
}
.month-weeks-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.week-toggles {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}



.week-toggle-btn {
    padding: 8px 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text);
    white-space: nowrap;
}

.week-toggle-btn:hover {
    background: var(--surface);
}

.week-toggle-btn.active {
    background: var(--blue);
    color: white;
}

.week-table {
    padding: 0;
}

.week-table .users-table {
    margin: 0;
    border-radius: 0;
}

/* Profile Styles */
.profile-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    flex-shrink: 0;
}

.avatar-circle.large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
}

.profile-details h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    color: var(--text);
}

.profile-email {
    color: var(--muted);
    font-size: 1rem;
    margin: 0.5rem 0;
}

.profile-role {
    color: var(--blue);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

#changePasswordForm,
#adminResetPasswordForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

#changePasswordForm input,
#adminResetPasswordForm input,
#adminResetPasswordForm select {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    font-size: 14px;
    color: var(--text);
}

#changePasswordForm button,
#adminResetPasswordForm button {
    padding: 12px 24px;
    background: linear-gradient(90deg, var(--blue), #3b82f6);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
}

#changePasswordForm button:hover,
#adminResetPasswordForm button:hover {
    background: linear-gradient(90deg, #1d4ed8, var(--blue));
}

#password-message,
#admin-password-message {
    margin-top: 1rem;
}

#password-message .success,
#admin-password-message .success {
    color: var(--green);
    font-weight: 600;
    padding: 10px;
    background: #dcfce7;
    border: 1px solid var(--green);
    border-radius: 6px;
}

#password-message .error,
#admin-password-message .error {
    color: #dc2626;
    font-weight: 600;
    padding: 10px;
    background: #fef2f2;
    border: 1px solid #ef4444;
    border-radius: 6px;
}

/* Super Admin Styles */
.plan-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-badge.plan-free {
    background: #f3f4f6;
    color: #6b7280;
}

.plan-badge.plan-basic {
    background: #dbeafe;
    color: #2563eb;
}

.plan-badge.plan-premium {
    background: #fef3c7;
    color: #d97706;
}

.plan-badge.plan-enterprise {
    background: #dcfce7;
    color: #16a34a;
}

.status-badge.active {
    background: #dcfce7;
    color: #166534;
}

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

.action-btn.disable {
    background: #fbbf24;
    color: #92400e;
}

.action-btn.enable {
    background: #22c55e;
    color: white;
}

.activity-item {
    padding: 10px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-time {
    color: var(--muted);
    font-size: 12px;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.form-row label {
    min-width: 150px;
    font-weight: 600;
}

.form-row input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}
/* Inline Role Select for Admin */
.role-select-inline {
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    font-size: 12px;
    color: var(--text);
    cursor: pointer;
    min-width: 100px;
}

.role-select-inline:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}
.submitted-status-content {
    background: #f8fafc;
    border: 2px solid #22c55e;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    color: var(--text);
    line-height: 1.5;
}
.team-member-status {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.team-member-status strong {
    color: var(--text);
    display: block;
    margin-bottom: 8px;
}

.team-member-status .status-message {
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.team-member-status small {
    color: var(--muted);
    font-size: 12px;
}
.users-table tr {
    height: 50px;
}

.users-table td {
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.users-table td:nth-child(5) {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.users-table tr:hover {
    background: var(--bg) !important;
}
.user-info-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.user-details h1 {
    margin: 0;
    font-size: 28px;
}

.user-details p {
    margin: 5px 0 0 0;
    color: var(--muted);
}

.user-content {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-section, .status-details-card, .assignments-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
}

.user-content {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
}

@media (max-width: 768px) {
    .user-content {
        padding: 15px;
        gap: 15px;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .user-info-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .card-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .calendar-navigation {
        width: 100%;
        justify-content: space-between;
    }
    
    .calendar-navigation button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 15px;
}

.card-header h2 {
    margin: 0;
    color: var(--text);
}

.calendar-navigation {
    display: flex;
    align-items: center;
    gap: 15px;
}

.calendar-navigation button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.calendar-navigation button:hover {
    opacity: 0.8;
}

.calendar-navigation button:active {
    transform: translateY(1px);
}

.calendar-navigation span {
    font-weight: 600;
    color: var(--text);
    min-width: 200px;
    text-align: center;
}

.assignment-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.assignment-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.priority {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.priority-low { background: #22c55e; color: white; }
.priority-medium { background: #f59e0b; color: white; }
.priority-high { background: #ef4444; color: white; }
.status-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    overflow-x: auto;
}

.status-table th,
.status-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.status-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text);
    position: sticky;
    top: 0;
}

.status-table tr:hover {
    background: var(--bg-secondary);
}

.status-table td:last-child {
    white-space: normal;
    max-width: 300px;
    word-wrap: break-word;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-badge.submitted {
    background: #22c55e;
    color: white;
}

.status-badge.not-submitted {
    background: #ef4444;
    color: white;
}

@media (max-width: 768px) {
    .status-table {
        font-size: 14px;
    }
    
    .status-table th,
    .status-table td {
        padding: 8px;
    }
    
    .status-table td:last-child {
        max-width: 200px;
    }
}
.day-status {
    font-size: 16px;
    font-weight: bold;
    color: var(--text);
}

.month-day-status {
    font-size: 14px;
    font-weight: bold;
    color: var(--text);
}
.month-day-cell.all-submitted {
    background-color: #dcfce7 !important;
    border-color: #22c55e !important;
}

.month-day-cell.partial-submitted {
    background-color: #fef3c7 !important;
    border-color: #f59e0b !important;
}

.month-day-cell.all-submitted .month-day-status {
    color: #15803d !important;
    font-weight: bold;
}

.month-day-cell.partial-submitted .month-day-status {
    color: #d97706 !important;
    font-weight: bold;
}
.assignments-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.assignments-container {
    padding: 20px;
}

.assignments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.assignment-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s;
}

.assignment-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.assignment-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.assignment-title {
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    flex: 1;
}

.priority-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.priority-low { background: #dcfce7; color: #166534; }
.priority-medium { background: #fef3c7; color: #92400e; }
.priority-high { background: #fecaca; color: #991b1b; }

.assignment-description {
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.5;
}

.assignment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #64748b;
}

.due-date {
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.assignment-modal .modal-content {
    max-width: 800px;
    width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--surface);
    border-radius: 14px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

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

.assignment-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
}

.assignment-form input,
.assignment-form textarea,
.assignment-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 16px;
    background: var(--surface);
    color: var(--text);
}

.assignment-form input:focus,
.assignment-form textarea:focus,
.assignment-form select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

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

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.btn-secondary {
    padding: 10px 20px;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
}

.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(90deg, var(--blue), #3b82f6);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .25);
    transition: all 0.2s;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #1d4ed8, var(--blue));
    transform: translateY(-1px);
    filter: brightness(1.03);
}
.editor-toolbar {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    padding: 8px;
    background: #f8fafc;
    border: 1px solid #d1d5db;
    border-radius: 6px 6px 0 0;
}

.editor-toolbar button {
    padding: 6px 10px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    min-width: 32px;
}

.editor-toolbar button:hover {
    background: #e5e7eb;
}

.editor-toolbar button.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.rich-editor {
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 6px 6px;
    background: white;
    outline: none;
    line-height: 1.5;
}

.rich-editor:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.rich-editor[placeholder]:empty:before {
    content: attr(placeholder);
    color: #9ca3af;
}

.rich-editor ul, .rich-editor ol {
    margin: 8px 0;
    padding-left: 20px;
}

.rich-editor li {
    margin: 4px 0;
}
.rich-editor {
    min-height: 180px;
    max-height: 500px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 6px 6px;
    background: white;
    outline: none;
    line-height: 1.5;
    width: 100%;
}
.radio-group {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.radio-option input[type="radio"] {
    margin-right: 8px;
}

.assignment-message {
    margin: 10px 0;
    padding: 10px;
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 6px;
    color: #1976d2;
    font-size: 14px;
}