.dashboard {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7ff 0%, #f0f2ff 100%);
    min-height: 100vh;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-light);
}

.dashboard-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-title p {
    color: var(--gray);
    font-size: 1.1rem;
}

#clientName {
    color: var(--primary);
    font-weight: 600;
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
}

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

.user-plan {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 2.2 rem;
    color: var(--dark);
    margin-bottom: 5px;
    line-height: 1;
}

.stat-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.stat-trend {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    margin-left: auto;
}

.stat-trend.positive {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.stat-trend.negative {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Dashboard Content */
.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.dashboard-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Dashboard Widgets */
.dashboard-widget {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--gray-light);
    background: linear-gradient(135deg, var(--info-light) 0%, var(--info) 100%);
    color: white;
}

.widget-header h3 {
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.view-all {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0.9;
    transition: var(--transition);
}

.view-all:hover {
    opacity: 1;
    text-decoration: underline;
}

.widget-body {
    padding: 25px;
}

/* Projects List */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-item {
    padding: 20px;
    border-radius: var(--radius);
    background: var(--gray-light);
    transition: var(--transition);
}

.project-item:hover {
    background: rgba(121, 105, 210, 0.05);
    transform: translateX(5px);
}

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

.status-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.in-progress {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.status-badge.review {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.status-badge.planning {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.status-badge.completed {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.project-days {
    font-size: 0.9rem;
    color: var(--gray);
}

.project-title {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.project-progress {
    margin-bottom: 15px;
}

.progress-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--gray);
}

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

.team-avatars {
    display: flex;
    align-items: center;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
    margin-left: -8px;
    background: white;
}

.avatar-sm:first-child {
    margin-left: 0;
}

.avatar-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.more-team {
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--gray);
}

.project-details {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.project-details:hover {
    text-decoration: underline;
}

/* Activity Timeline */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-light);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.activity-content p {
    margin-bottom: 5px;
    color: var(--dark);
    line-height: 1.4;
}

.activity-content strong {
    color: var(--primary);
}

.activity-time {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Timeline Calendar */
.timeline-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-icon {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.current-month {
    font-weight: 500;
    min-width: 120px;
    text-align: center;
}

.timeline-calendar {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 25px;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--gray-light);
    padding: 15px 0;
}

.calendar-day {
    text-align: center;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--gray-light);
}

.calendar-date {
    background: white;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.calendar-date:hover {
    background: var(--primary);
    color: white;
}

.calendar-date.today {
    background: var(--gradient);
    color: white;
    font-weight: 600;
}

.calendar-date.event {
    position: relative;
}

.calendar-date.event::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.calendar-date.other-month {
    color: var(--gray);
    opacity: 0.5;
}

.timeline-events h4 {
    margin-bottom: 20px;
    color: var(--dark);
    font-size: 1.1rem;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--gray-light);
    border-radius: var(--radius);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.event-day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.event-month {
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-details {
    flex: 1;
}

.event-details h5 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.event-details p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 10px;
    background: var(--gray-light);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.quick-action-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.quick-action-btn i {
    font-size: 1.5rem;
}

.quick-action-btn span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Team Members */
.team-members {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--gray-light);
    border-radius: var(--radius);
}

.member-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    flex: 1;
}

.member-info h5 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.member-info p {
    font-size: 0.9rem;
    color: var(--gray);
}

.member-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.member-status.online {
    background: #28a745;
}

.member-status.away {
    background: #ffc107;
}

.member-status.offline {
    background: #6c757d;
}

/* Dashboard Charts */
.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.chart-widget {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.chart-widget .widget-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.chart-period {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 15px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    cursor: pointer;
}

.chart-period option {
    color: var(--dark);
}

.chart-widget .widget-body {
    padding: 25px;
    height: 300px;
}

/* Files Table */
.files-table {
    overflow-x: auto;
}

.files-table table {
    width: 100%;
    border-collapse: collapse;
}

.files-table th {
    text-align: left;
    padding: 15px;
    background: var(--gray-light);
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--gray);
}

.files-table td {
    padding: 15px;
    border-bottom: 1px solid var(--gray-light);
    color: var(--dark);
}

.files-table tr:hover {
    background: rgba(121, 105, 210, 0.05);
}

.files-table td:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

.files-table td i {
    color: var(--primary);
    font-size: 1.2rem;
}

.files-table .btn-icon {
    width: 35px;
    height: 35px;
    border: 1px solid var(--gray-light);
    background: white;
    border-radius: 5px;
    color: var(--gray);
    cursor: pointer;
    margin: 0 5px;
    transition: var(--transition);
}

.files-table .btn-icon:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* New Project Modal */
#newProjectModal .modal-content {
    max-width: 600px;
}

#newProjectModal .modal-body {
    padding: 40px;
}

#newProjectModal h3 {
    margin-bottom: 30px;
    text-align: center;
    color: var(--dark);
}

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

#newProjectModal .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .dashboard-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .files-table {
        font-size: 0.9rem;
    }
    
    .files-table th,
    .files-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 576px) {
    .dashboard-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .user-profile {
        justify-content: center;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}
/* Add to existing dashboard.css */

/* Dashboard Header Updates */
.demo-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(121, 105, 210, 0.1);
    border-radius: var(--radius);
    color: var(--primary);
    font-weight: 500;
}

.demo-notice i {
    font-size: 1.2rem;
}

/* Live Projects Grid */
.live-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.live-project-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.live-project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.project-preview {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.live-project-card:hover .project-preview img {
    transform: scale(1.05);
}

.project-status {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.project-status.live {
    background: #28a745;
}

.project-status.active {
    background: #007bff;
}

.project-status.completed {
    background: #6c757d;
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
}

.project-metrics {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: var(--gray-light);
    border-bottom: 1px solid #e0e0e0;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 5px;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
}

.metric-value.positive {
    color: #28a745;
}

.metric-value.negative {
    color: #dc3545;
}

.project-info {
    padding: 20px;
}

.project-info h4 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.project-info p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.project-tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tech span {
    padding: 5px 12px;
    background: rgba(121, 105, 210, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Analytics Controls */
.analytics-controls {
    display: flex;
    gap: 10px;
}

.analytics-controls .btn-icon {
    padding: 8px 35px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.analytics-controls .btn-icon:hover,
.analytics-controls .btn-icon.active {
    background: white;
    color: var(--primary);
}

/* Success Stories */
.success-stories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.story-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--gray-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.story-card:hover {
    background: rgba(121, 105, 210, 0.05);
    transform: translateX(5px);
}

.story-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.story-content h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.story-content p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.story-content strong {
    color: var(--primary);
}

.story-date {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Testimonial Slider */
.testimonial-slider {
    position: relative;
    min-height: 200px;
}

.testimonial {
    display: none;
    animation: fadeIn 0.5s ease;
}

.testimonial.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial-content {
    background: var(--gray-light);
    padding: 25px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 40px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--gray-light);
}

.testimonial-content p {
    font-style: italic;
    color: var(--dark);
    line-height: 1.6;
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h5 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--gray);
}

.testimonial-nav {
    display: flex;
    gap: 10px;
}

/* Process Timeline */
.process-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 20px 0;
}

.process-timeline:before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gray-light);
    z-index: 1;
}

.process-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    padding: 0 15px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
}

.step-content {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.step-content h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.step-content p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.step-duration {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

/* Dashboard CTA */
.dashboard-cta {
    background: white;
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
    color: white !important;
    margin-top: 40px;
}



/* Fix: ensure CTA heading is visible; clears background-clip/text-fill and forces color */
.dashboard-cta .cta-heading-fix,
.dashboard-cta h3.cta-heading-fix {
    color: var(--primary) !important;
    -webkit-text-fill-color: var(--primary) !important; /* override transparent fill */
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    background: none !important;
    mix-blend-mode: normal !important;
    opacity: 1 !important;
    visibility: visible !important;
    clip-path: none !important;
    transform: none !important;
    filter: none !important;
    position: relative !important;
    z-index: 5 !important;
  font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: normal !important;
}

.dashboard-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    color: var(--gray);
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-lg {
    padding: 18px 35px;
    font-size: 1.1rem;
}

/* Strategy Session Modal */
#strategyModal .modal-content {
    max-width: 700px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.modal-header h3 {
    color: white;
    margin: 0;
}

#strategyForm {
    padding: 30px;
}

/* Responsive Updates */
@media (max-width: 1200px) {
    .live-projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .process-timeline {
        flex-direction: column;
        gap: 30px;
    }
    
    .process-timeline:before {
        display: none;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .dashboard-cta {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .live-projects-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .dashboard-actions {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }
    
    .project-metrics {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .metric {
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 576px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .analytics-controls {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .story-card {
        flex-direction: column;
        text-align: center;
    }
}
/* Add to main.css or dashboard.css */
.modal-header {
    position: relative;
}

.modal-header .close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
    color: white;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-header .close-modal:hover {
    color: var(--gray-light);
}

/* Ensure modal can be closed */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background: white;
    margin: 50px auto;
    width: 90%;
    max-width: 800px;
    border-radius: var(--radius-lg);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}