:root {
    --primary-color: #3a7bd5;
    --primary-light: #5e92e0;
    --primary-dark: #2a65b8;
    --secondary-color: #4d5b96;
    --accent-color: #00b894;
    --accent-light: #00d1a7;
    --accent-dark: #00a07c;
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --card-hover: #2a2a2a;
    --text-light: #ffffff;
    --text-muted: #b0b0b0;
    --border-radius: 10px;
    --transition: all 0.3s ease;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --ai-color: #00b894;
    --email-color: #3a7bd5;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --success-color: #00b894;
    --warning-color: #f2b94f;
    --error-color: #e74c3c;
    
    /* Auth related colors */
    --google-color: #4285F4;
}

/* Authentication related styles */
.profile-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: var(--card-bg);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 250px;
    z-index: 100;
    overflow: hidden;
}

.dropdown-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--card-hover);
}

.dropdown-item.user-info {
    padding: 16px;
    cursor: default;
}

.dropdown-item.user-info:hover {
    background-color: transparent;
}

.dropdown-item.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.dropdown-item.user-info .name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.dropdown-item.user-info .email {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.dropdown-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.05);
}

.dropdown-item.logout-btn {
    color: var(--error-color);
}

.dropdown-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.container {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 100vh;
    max-width: 1800px;
    margin: 0 auto;
}

/* Sidebar Styles */
.sidebar {
    background-color: var(--card-bg);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.logo h2 {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.5px;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
}

nav ul li {
    margin-bottom: 0.8rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

nav ul li:nth-child(3) a {
    position: relative;
}

nav ul li:nth-child(3) a::after {
    content: 'AI';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--ai-color);
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: bold;
}

nav ul li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

nav ul li a i {
    margin-right: 12px;
    font-size: 1.1rem;
}

nav ul li.active,
nav ul li:hover {
    background-color: rgba(58, 123, 213, 0.1);
}

nav ul li.active a,
nav ul li:hover a {
    color: var(--primary-color);
}

.user-profile {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.user-profile::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.2;
}

.avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.user-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
}

.user-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Main Content Styles */
.main-content {
    padding: 1.5rem 2rem;
    overflow-y: auto;
}

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

.search-bar {
    display: flex;
    align-items: center;
    background-color: rgba(26, 26, 64, 0.5);
    backdrop-filter: blur(5px);
    border: var(--glass-border);
    border-radius: 50px;
    padding: 0.7rem 1.2rem;
    width: 350px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.search-bar i {
    color: var(--text-muted);
    margin-right: 10px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-light);
    width: 100%;
    outline: none;
}

.header-actions button {
    background-color: rgba(26, 26, 64, 0.5);
    backdrop-filter: blur(5px);
    border: var(--glass-border);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--text-light);
    margin-left: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-actions button:hover {
    background-color: var(--primary-color);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.2rem;
}

.section {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

.section-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.section-header.with-action {
    margin-bottom: 0.5rem;
}

.action-icon {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.action-icon:hover {
    background-color: rgba(255, 126, 51, 0.1);
}

/* Progress Days */
.progress-overview {
    grid-column: span 12;
}

.progress-overview .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.progress-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.progress-text {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
}

.progress-period {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.progress-meter {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 0.8s ease;
}

.progress-days {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 1.2rem 1rem;
    border: 1px solid rgba(58, 123, 213, 0.08);
}

.day-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(100% / 7);
    position: relative;
}

.day-column:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.05);
}

.day-number {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.8rem;
}

.day-status {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    background-color: rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    transition: var(--transition);
}

.day-task {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.day-column.completed .day-status {
    background-color: var(--success-color);
    color: white;
    box-shadow: 0 3px 8px rgba(0, 184, 148, 0.25);
}

.day-column.missed .day-status {
    background-color: var(--error-color);
    color: white;
    box-shadow: 0 3px 8px rgba(231, 76, 60, 0.25);
}

.day-column.current .day-status {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 3px 8px rgba(58, 123, 213, 0.25);
}

.day-column.current .day-number {
    color: var(--primary-color);
}

.day-column:hover .day-status:not(.day-empty) {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.day-empty {
    background-color: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Stats Cards */
.stats-card {
    grid-column: span 4;
    text-align: center;
    padding: 1.5rem 1rem;
}

.stats-card h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stats-card .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    text-shadow: 0 2px 10px rgba(58, 123, 213, 0.3);
}

.stat-number span {
    font-size: 1.5rem;
    margin-left: 0.2rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Action Cards */
.action-card {
    grid-column: span 6;
    padding: 0;
    overflow: hidden;
}

.action-btn {
    width: 100%;
    height: 100%;
    border: none;
    background-color: transparent;
    color: var(--text-light);
    padding: 1.5rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.action-btn span {
    font-weight: 500;
}

.action-btn i {
    color: var(--primary-color);
}

.action-card.primary .action-btn {
    background: var(--primary-color);
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(58, 123, 213, 0.2);
}

.action-card.primary .action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.action-card.primary .action-btn:hover::before {
    opacity: 1;
}

.action-card.primary:hover .action-btn {
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.2);
}

.action-card.primary .action-btn i {
    color: white;
}

.action-card.primary:hover .action-btn {
    background-color: #e06a20;
}

/* Create Plan/Workout Sections */
.history {
    grid-column: span 12;
}

.history p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Plans Section */
.plans {
    grid-column: span 12;
}

.plan-item {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.plan-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    background-color: var(--card-hover);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.plan-title-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.toggle-btn:hover {
    color: var(--primary-color);
}

.toggle-btn i {
    transition: transform 0.3s ease;
}

.plan-content {
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

.plan-item.collapsed .plan-content {
    max-height: 0;
}

.plan-item.collapsed .plan-info,
.plan-item.collapsed .plan-day,
.plan-item.collapsed .email-status {
    display: none;
}

.ai-badge {
    display: flex;
    align-items: center;
    background-color: rgba(0, 184, 148, 0.15);
    color: var(--ai-color);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid rgba(0, 184, 148, 0.3);
    box-shadow: 0 2px 8px rgba(0, 184, 148, 0.1);
}

.ai-badge i {
    margin-right: 4px;
    font-size: 0.7rem;
}

.plan-info {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.02);
}

.plan-category, .plan-deadline {
    display: flex;
    align-items: center;
    gap: 5px;
}

.email-status {
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
    color: var(--email-color);
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(58, 123, 213, 0.08);
    border-top: 1px solid rgba(58, 123, 213, 0.15);
}

.plan-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.delete-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.delete-btn:hover {
    color: #ff4d4d;
}

.plan-day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: var(--transition);
}

.milestone-text {
    flex: 1;
}

.milestone-date {
    background-color: rgba(58, 123, 213, 0.1);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin: 0 8px;
    white-space: nowrap;
}

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

.plan-day.active {
    background-color: rgba(255, 126, 51, 0.05);
}

.plan-day:hover {
    background-color: rgba(255, 126, 51, 0.1);
}

.plan-day span {
    font-size: 0.9rem;
}

.plan-day i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    width: 500px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.modal-body {
    padding: 1.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
    color: var(--text-light);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
    color: var(--text-light);
    font-size: 0.9rem;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.form-group select option {
    background-color: var(--card-bg);
    color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--card-hover);
    box-shadow: 0 0 0 2px rgba(58, 123, 213, 0.2);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.milestone-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ai-suggestion-note {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--ai-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.milestone-input {
    display: flex;
    gap: 0.5rem;
}

.add-milestone {
    background-color: var(--primary-color);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-milestone:hover {
    background-color: #e06a20;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.submit-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-btn i {
    font-size: 0.9rem;
}

.cancel-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

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

.submit-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.9rem 1.8rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(58, 123, 213, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.submit-btn:hover::before {
    opacity: 1;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4);
}

.submit-btn:hover {
    background-color: #e06a20;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .stats-card {
        grid-column: span 6;
    }
    
    .action-card {
        grid-column: span 12;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .stats-card {
        grid-column: span 12;
    }
    
    .search-bar {
        width: 100%;
    }
}

/* Loading Modal Styles */
.loading-container {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.loading-container p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Milestone Container Styles */
.milestone-container {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    width: 100%;
}

.milestone-container:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.milestone-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
}

.milestone-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.milestone-text {
    font-weight: 500;
    color: white;
    flex: 1;
}

.date-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    margin: 0 12px;
}

.milestone-header .fa-chevron-down {
    color: #666;
    transition: transform 0.3s ease;
}

.milestone-content {
    max-height: 0;
    color: white;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: rgba(0, 0, 0, 0.2);
    width: 100%;
}

.milestone-container.expanded .milestone-content {
    max-height: 1000px;
}

.focus-section, .subtasks-section {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.focus-section h4, .subtasks-section h4 {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 8px 0;
    font-size: 0.9em;
    font-weight: 500;
}

.focus-text {
    color: white;
    line-height: 1.4;
    font-size: 0.9em;
}

/* Sub-task Container Styles */
.subtask-container {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    width: 100%;
}

.subtask-container:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.subtask-header {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
}

.subtask-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.subtask-title {
    flex: 1;
    margin-left: 8px;
    font-size: 0.9em;
    color: white;
}

.subtask-arrow {
    color: var(--text-muted);
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.subtask-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: rgba(0, 0, 0, 0.2);
    width: 100%;
}

.subtask-container.expanded .subtask-content {
    max-height: 200px;
}

.subtask-details {
    padding: 12px;
}

.subtask-description {
    color: white;
    font-size: 0.85em;
    margin-bottom: 12px;
    line-height: 1.4;
}

.subtask-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

.subtask-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.8em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    color: white;
}

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

.complete-btn:hover {
    background-color: var(--success-color);
    opacity: 0.9;
}

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

.edit-btn:hover {
    background-color: var(--primary-light);
}

.subtask-container.completed {
    border-color: var(--success-color);
    background-color: rgba(0, 184, 148, 0.1);
}

.subtask-container.completed .subtask-header {
    opacity: 0.7;
}

.subtask-container.completed .subtask-title {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.7);
}

/* Section Header Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

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

.expand-all-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.expand-all-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: var(--primary-color);
}

.expand-all-btn i {
    transition: transform 0.3s ease;
}

.expand-all-btn.expanded i {
    transform: rotate(180deg);
}
