:root {
    --crimson: #DC143C;
    --black: #000000;
    --white: #FFFFFF;
    --gray-light: #F8F9FA;
    --gray-medium: #E8EBEF;
    --gray-border: #E5E7EB;
    --gray-text: #6B7280;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --neu-light: 8px 8px 16px rgba(163, 177, 198, 0.4), -8px -8px 16px rgba(255, 255, 255, 0.8);
    --neu-light-hover: 10px 10px 20px rgba(163, 177, 198, 0.5), -10px -10px 20px rgba(255, 255, 255, 0.9);
    --neu-light-inset: inset 6px 6px 12px rgba(163, 177, 198, 0.3), inset -6px -6px 12px rgba(255, 255, 255, 0.7);
    --neu-crimson: 4px 4px 8px rgba(220, 20, 60, 0.3), -2px -2px 6px rgba(255, 255, 255, 0.5);
    --neu-crimson-hover: 6px 6px 12px rgba(220, 20, 60, 0.4), -3px -3px 8px rgba(255, 255, 255, 0.6);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Fira Sans', sans-serif;
    margin: 0;
    padding: 0;
}

/* Container */
.rv0-container {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ebf0 100%);
}

/* ==================== AUTHENTICATION ==================== */
.resources-auth-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 60px 20px;
}

.resources-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    background: var(--gray-light);
    border-radius: 12px;
    padding: 6px;
    box-shadow: var(--neu-light);
}

.resources-tab-btn {
    flex: 1;
    padding: 14px 24px;
    background: transparent;
    border: none;
    color: var(--gray-text);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.resources-tab-btn.active {
    background: var(--crimson);
    color: var(--white);
    box-shadow: var(--neu-crimson);
}

.resources-tab-content {
    display: none;
    background: var(--gray-light);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--neu-light);
}

.resources-tab-content.active {
    display: block;
}

.resources-tab-content h2 {
    margin: 0 0 24px;
    font-size: 28px;
    font-weight: 600;
    color: var(--black);
}

/* ==================== DASHBOARD LAYOUT ==================== */
.resources-dashboard-container {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ebf0 100%);
}

/* Sidebar */
.resources-sidebar {
    width: 280px;
    background: var(--black);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
}

.resources-logo {
    padding: 32px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.resources-logo h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--crimson);
}

.resources-nav {
    flex: 1;
    padding: 24px 0;
}

.resources-nav-link {
    display: block;
    padding: 16px 24px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.resources-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.resources-nav-link.active {
    background: rgba(220, 20, 60, 0.1);
    color: var(--white);
    border-left-color: var(--crimson);
}

.resources-sidebar-footer {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.resources-sidebar-footer p {
    margin: 0 0 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Main Content */
.resources-main-content {
    flex: 1;
    margin-left: 280px !important;
    padding: 48px;
    min-height: 100vh;
    width: calc(100% - 280px);
}

.resources-content-section {
    display: none;
}

.resources-content-section.active {
    display: block;
}

/* Section Header */
.resources-section-header {
    margin-bottom: 32px;
}

.resources-section-header h1 {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 700;
    color: var(--black);
}

.resources-subtitle {
    margin: 0;
    font-size: 16px;
    color: var(--gray-text);
    line-height: 1.6;
}

/* ==================== CARDS ==================== */
.resources-card {
    background: var(--gray-light);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--neu-light);
    border: none;
    margin-bottom: 24px;
    transition: all 0.3s;
}

.resources-card:hover {
    box-shadow: var(--neu-light-hover);
}

.resources-card h3 {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
}

.resources-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.resources-dashboard-grid .resources-card {
    margin: 0;
}

.resources-dashboard-grid .resources-card p {
    margin: 12px 0;
    font-size: 15px;
    color: var(--gray-text);
}

.resources-dashboard-grid .resources-card strong {
    color: var(--black);
    font-weight: 600;
}

/* ==================== FORMS ==================== */
.resources-form {
    max-width: 100%;
}

.resources-form-group {
    margin-bottom: 24px;
}

.resources-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
}

.resources-form-group input[type="text"],
.resources-form-group input[type="email"],
.resources-form-group input[type="password"],
.resources-form-group input[type="date"],
.resources-form-group input[type="number"],
.resources-form-group textarea,
.resources-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Fira Sans', sans-serif;
    transition: all 0.3s;
    background: var(--gray-light);
    box-shadow: var(--neu-light-inset);
    color: var(--black);
}

.resources-form-group input:focus,
.resources-form-group textarea:focus,
.resources-form-group select:focus {
    outline: none;
    box-shadow: var(--neu-light-inset), 0 0 0 3px rgba(220, 20, 60, 0.15);
}

.resources-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Plan Groups */
.plan-group {
    background: var(--gray-light);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--neu-light);
    margin-bottom: 24px;
}

/* Day Checkboxes */
.day-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.day-checkboxes label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    margin: 0;
    background: var(--gray-light);
    box-shadow: var(--neu-light);
}

.day-checkboxes label:hover {
    box-shadow: var(--neu-light-hover);
}

.day-checkboxes label:has(input:checked) {
    background: var(--crimson);
    color: var(--white);
    box-shadow: var(--neu-crimson);
}

.day-checkboxes input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.reminder-options {
    margin-top: 16px;
    padding: 16px;
    background: var(--gray-light);
    border-radius: 10px;
    box-shadow: var(--neu-light-inset);
}

/* ==================== BUTTONS ==================== */
.resources-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Fira Sans', sans-serif;
    display: inline-block;
}

.resources-btn-primary {
    background: var(--crimson);
    color: var(--white);
    box-shadow: var(--neu-crimson);
}

.resources-btn-primary:hover {
    background: #C0102E;
    transform: translateY(-2px);
    box-shadow: var(--neu-crimson-hover);
}

.resources-btn-primary:active {
    transform: translateY(0);
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.2), inset -2px -2px 4px rgba(255, 255, 255, 0.1);
}

.resources-btn-secondary {
    background: var(--gray-light);
    color: var(--black);
    border: none;
    box-shadow: var(--neu-light);
}

.resources-btn-secondary:hover {
    box-shadow: var(--neu-light-hover);
    transform: translateY(-1px);
}

.resources-btn-secondary:active {
    transform: translateY(0);
    box-shadow: var(--neu-light-inset);
}

.resources-btn-danger {
    background: #EF4444;
    color: var(--white);
    box-shadow: 4px 4px 8px rgba(239, 68, 68, 0.3), -2px -2px 6px rgba(255, 255, 255, 0.5);
}

.resources-btn-danger:hover {
    background: #DC2626;
    transform: translateY(-2px);
    box-shadow: 6px 6px 12px rgba(239, 68, 68, 0.4), -3px -3px 8px rgba(255, 255, 255, 0.6);
}

.resources-btn-danger:active {
    transform: translateY(0);
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.2);
}

.resources-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

/* ==================== GOALS ==================== */
.resources-goals-container {
    max-width: 100%;
}

.resources-goal-card {
    background: var(--gray-light);
    border: none;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--neu-light);
    transition: all 0.3s;
}

.resources-goal-card:hover {
    box-shadow: var(--neu-light-hover);
}

.goal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-medium);
}

.goal-card-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
}

.goal-status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--crimson);
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
}

.goal-card-body p {
    margin: 16px 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-text);
}

.goal-card-body strong {
    color: var(--black);
    font-weight: 600;
}

.goal-objective {
    font-size: 16px !important;
    color: var(--black) !important;
}

.goal-strategies {
    margin-top: 20px;
    padding: 16px;
    background: var(--gray-light);
    border-radius: 10px;
    box-shadow: var(--neu-light-inset);
}

.goal-strategies ol {
    margin: 12px 0 0;
    padding-left: 24px;
}

.goal-strategies li {
    margin: 8px 0;
    color: var(--gray-text);
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.goal-strategies .plan-text {
    flex: 1;
}

.resources-btn-icon {
    background: none;
    border: none;
    color: var(--crimson);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resources-btn-icon:hover {
    background: rgba(220, 20, 60, 0.1);
    transform: scale(1.1);
}

.goal-card-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-medium);
}

/* ==================== ACTION ITEMS ==================== */
.resources-action-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.resources-action-item-card {
    background: var(--gray-light);
    border: none;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--neu-light);
    transition: all 0.3s;
}

.resources-action-item-card:hover {
    box-shadow: var(--neu-light-hover);
    transform: translateY(-2px);
}

.action-item-header {
    margin-bottom: 16px;
}

.action-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: var(--neu-light-inset);
}

.status-pending .action-status-badge {
    background: #FEF3C7;
    color: #92400E;
}

.status-in-progress .action-status-badge {
    background: #DBEAFE;
    color: #1E40AF;
}

.status-completed .action-status-badge {
    background: #D1FAE5;
    color: #065F46;
}

.status-cancelled .action-status-badge {
    background: #F3F4F6;
    color: #6B7280;
}

.action-item-body p {
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-text);
}

.action-objective-ref {
    font-size: 13px !important;
    font-style: italic;
}

.action-text {
    font-size: 15px !important;
    color: var(--black) !important;
    font-weight: 500;
}

.action-item-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-medium);
}

.action-status-select {
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background: var(--gray-light);
    box-shadow: var(--neu-light-inset);
    font-family: 'Fira Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
}

.action-status-select:focus {
    outline: none;
    box-shadow: var(--neu-light-inset), 0 0 0 3px rgba(220, 20, 60, 0.15);
}

/* ==================== MODALS ==================== */
.resources-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow-y: auto;
    padding: 40px 20px;
    backdrop-filter: blur(4px);
}

.resources-modal-content {
    max-width: 700px;
    margin: 0 auto;
    background: var(--gray-light);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: 20px 20px 40px rgba(163, 177, 198, 0.6), -20px -20px 40px rgba(255, 255, 255, 0.9);
}

.resources-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: var(--gray-text);
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.resources-modal-close:hover {
    color: var(--crimson);
    background: rgba(220, 20, 60, 0.1);
}

.resources-modal h2 {
    margin: 0 0 28px;
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
}

.resources-modal h3 {
    margin: 28px 0 20px;
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
}

/* ==================== MESSAGES ==================== */
.resources-message {
    margin-top: 16px;
}

.resources-message p {
    padding: 14px 18px;
    border-radius: 10px;
    margin: 0;
    font-size: 14px;
    box-shadow: var(--neu-light-inset);
}

.resources-message .success {
    background: #D1FAE5;
    color: #065F46;
}

.resources-message .error {
    background: #FEE2E2;
    color: #991B1B;
}

/* ==================== FILTER BAR ==================== */
.resources-filter-bar {
    background: var(--gray-light);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--neu-light);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.resources-filter-bar label {
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
}

/* ==================== TOOLS ==================== */
.resources-tools-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.resources-tools-tab {
    padding: 12px 24px;
    background: var(--gray-light);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Fira Sans', sans-serif;
    color: var(--gray-text);
    box-shadow: var(--neu-light);
}

.resources-tools-tab:hover {
    box-shadow: var(--neu-light-hover);
}

.resources-tools-tab.active {
    background: var(--crimson);
    color: var(--white);
    box-shadow: var(--neu-crimson);
}

.resources-tool-panel,
.rv0-tool-content {
    display: none;
}

.resources-tool-panel.active,
.rv0-tool-content.active {
    display: block;
}

.rv0-tool-textarea {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-family: 'Fira Sans', sans-serif;
    font-size: 14px;
    background: var(--gray-light);
    box-shadow: var(--neu-light-inset);
    resize: vertical;
    margin: 16px 0;
}

.rv0-tool-textarea:focus {
    outline: none;
    box-shadow: var(--neu-light-inset), 0 0 0 3px rgba(220, 20, 60, 0.15);
}

.rv0-save-tool {
    padding: 12px 24px;
    background: var(--crimson);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Fira Sans', sans-serif;
    box-shadow: var(--neu-crimson);
    transition: all 0.3s;
}

.rv0-save-tool:hover {
    box-shadow: var(--neu-crimson-hover);
    transform: translateY(-2px);
}

/* ==================== EMPTY STATES ==================== */
.resources-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-text);
    font-size: 16px;
    background: var(--gray-light);
    border-radius: 16px;
    box-shadow: var(--neu-light-inset);
}

.resources-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-text);
    font-size: 16px;
}

/* ==================== SPEEDOMETER ==================== */
.speedometer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.progress-speedometer {
    width: 180px;
    height: 110px;
    position: relative;
    margin: 10px auto;
}

.speedometer-svg {
    width: 100%;
    height: 100%;
}

.speedometer-track {
    stroke: var(--gray-border);
    stroke-width: 12;
    fill: none;
}

.speedometer-fill {
    stroke: var(--crimson);
    stroke-width: 12;
    fill: none;
    stroke-linecap: round;
    transition: d 0.6s ease;
}

.speedometer-text {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.progress-percentage {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--crimson);
    line-height: 1;
}

.progress-label {
    display: block;
    font-size: 13px;
    color: var(--gray-text);
    margin-top: 4px;
}

/* ==================== TASKS ==================== */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--gray-light);
    border-radius: 10px;
    box-shadow: var(--neu-light);
    transition: all 0.3s;
}

.task-item:hover {
    box-shadow: var(--neu-light-hover);
}

.task-item.task-completed {
    opacity: 0.6;
}

.task-item.task-completed .task-text {
    text-decoration: line-through;
    color: var(--gray-text);
}

.task-checkbox-label {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.task-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.task-checkmark {
    display: block;
    width: 24px;
    height: 24px;
    background: var(--gray-light);
    border-radius: 6px;
    box-shadow: var(--neu-light-inset);
    transition: all 0.3s;
    position: relative;
}

.task-checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.task-checkbox:checked ~ .task-checkmark {
    background: var(--crimson);
    box-shadow: var(--neu-crimson);
}

.task-checkbox:checked ~ .task-checkmark::after {
    display: block;
}

.task-content {
    flex: 1;
}

.task-text {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--black);
    line-height: 1.5;
}

.task-meta {
    margin: 0;
    font-size: 13px;
    color: var(--gray-text);
}

/* ==================== OVERALL GOAL DISPLAY ==================== */
.overall-goal-display {
    padding: 20px;
    background: var(--gray-light);
    border-radius: 10px;
    box-shadow: var(--neu-light-inset);
    margin-top: 15px;
}

.goal-statement {
    font-size: 16px;
    line-height: 1.8;
    color: var(--black);
    margin: 0 0 12px;
    font-weight: 500;
}

.goal-target {
    font-size: 14px;
    color: var(--gray-text);
    margin: 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .resources-sidebar {
        width: 240px;
    }
    
    .resources-main-content {
        margin-left: 240px !important;
        padding: 24px;
        width: calc(100% - 240px);
    }
    
    .resources-dashboard-grid,
    .resources-action-items-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-form-actions {
        flex-direction: column;
    }
    
    .resources-form-actions .resources-btn {
        width: 100%;
    }
    
    .resources-tools-tabs {
        flex-direction: column;
    }
    
    .day-checkboxes {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .resources-sidebar {
        width: 200px;
    }
    
    .resources-main-content {
        margin-left: 200px !important;
        padding: 16px;
        width: calc(100% - 200px);
    }
    
    .resources-section-header h1 {
        font-size: 24px;
    }
    
    .resources-modal-content {
        padding: 24px;
    }
}