* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #28a745;
    --dark-green: #218838;
    --light-green: #34ce57;
    --earth-bg: #f0f8f0;
    --earth-dark: #d4ead4;
    --earth-light: #f7fdf7;
    --text-primary: #1a3a1a;
    --text-secondary: #2d5a2d;
    --shadow: rgba(40, 167, 69, 0.15);
    --shadow-strong: rgba(40, 167, 69, 0.25);
}

body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(135deg, var(--earth-light) 0%, var(--earth-bg) 50%, var(--earth-dark) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    direction: rtl;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

.header {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 20px var(--shadow-strong);
    position: relative;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    stroke-width: 2;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.stats-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Tajawal', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.stats-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.stats-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.main-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    position: relative;
    min-height: 0;
}

.chat-section {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    background: var(--earth-light);
}

.chat-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem;
    scroll-behavior: smooth;
}

.chat-container::-webkit-scrollbar {
    width: 8px;
}

.chat-container::-webkit-scrollbar-track {
    background: var(--earth-dark);
    border-radius: 10px;
}

.chat-container::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 10px;
}

.welcome-message {
    text-align: center;
    max-width: 700px;
    margin: 3rem auto;
    padding: 3rem 2rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 32px var(--shadow);
    border: 2px solid var(--primary-green);
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.welcome-message h2 {
    color: var(--primary-green);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.welcome-message p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.welcome-subtitle {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0;
}

.suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.suggestion-btn {
    background: linear-gradient(135deg, var(--light-green), var(--primary-green));
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow);
}

.suggestion-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-strong);
}

.message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    min-width: 40px;
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
    padding: 0 0.5rem;
    font-weight: 700;
    white-space: nowrap;
}

.message.user .message-avatar {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white;
    font-size: 1.3rem;
    min-width: 40px;
    padding: 0;
}

.message.ai .message-avatar {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white;
    min-width: auto;
}

.message-content {
    flex: 1;
    max-width: 75%;
}

.message.user .message-content {
    text-align: right;
}

.message-bubble {
    padding: 1rem 1.5rem;
    border-radius: 16px;
    line-height: 1.6;
    font-size: 1rem;
}

.message.user .message-bubble {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white;
    border-bottom-right-radius: 4px;
}

.message.ai .message-bubble {
    background: white;
    color: var(--text-primary);
    box-shadow: 0 4px 16px var(--shadow);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--earth-dark);
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.input-container {
    padding: 1.5rem;
    background: white;
    border-top: 2px solid var(--primary-green);
    box-shadow: 0 -4px 20px var(--shadow);
}

.upload-buttons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.upload-btn {
    background: var(--earth-bg);
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.upload-btn:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
}

.file-preview {
    margin-bottom: 1rem;
    display: none;
}

.file-preview.show {
    display: block;
}

.file-preview-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--earth-bg);
    border-radius: 12px;
    border: 2px solid var(--primary-green);
}

.file-preview-item img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 8px;
}

.remove-file-btn {
    margin-right: auto;
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
}

.input-wrapper {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

#userInput {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid var(--primary-green);
    border-radius: 16px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    resize: none;
    max-height: 150px;
    background: var(--earth-light);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

#userInput:focus {
    outline: none;
    border-color: var(--dark-green);
    box-shadow: 0 0 0 3px var(--shadow);
}

.send-btn {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.send-btn svg {
    width: 24px;
    height: 24px;
}

.send-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-strong);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.stats-panel {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    background: white;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.2);
    transition: left 0.4s ease;
    z-index: 200;
    overflow-y: auto;
}

.stats-panel.show {
    left: 0;
}

.stats-header {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.stats-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--earth-light), white);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 16px var(--shadow);
    border: 2px solid var(--primary-green);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-strong);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stats-chart {
    padding: 1.5rem;
    margin: 1rem;
    background: var(--earth-light);
    border-radius: 16px;
    border: 2px solid var(--primary-green);
}

.stats-chart h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

#usageChart {
    width: 100%;
    height: 200px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 240, 232, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    z-index: 300;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--earth-dark);
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-overlay p {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .container {
        max-width: 100%;
    }

    .chat-section {
        min-height: calc(100vh - 56px);
    }

    .welcome-message {
        max-width: 90%;
        padding: 2.5rem 2rem;
    }

    .suggestions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .chat-section {
        min-height: calc(100vh - 52px);
    }

    .chat-container {
        padding: 1rem;
    }

    .header {
        padding: 0.75rem 1rem;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .stats-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

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

    .welcome-message {
        padding: 2rem 1.5rem;
        margin: 1.5rem auto;
        max-width: 95%;
    }

    .welcome-message h2 {
        font-size: 1.4rem;
    }

    .welcome-subtitle {
        font-size: 1.1rem;
    }

    .welcome-icon {
        font-size: 3.5rem;
    }

    .suggestions {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .suggestion-btn {
        padding: 0.85rem;
        font-size: 0.9rem;
    }

    .message {
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .message-avatar {
        min-width: 35px;
        height: 35px;
        font-size: 0.65rem;
    }

    .message.user .message-avatar {
        font-size: 1.1rem;
        min-width: 35px;
    }

    .message-content {
        max-width: 85%;
    }

    .message-bubble {
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }

    .input-container {
        padding: 1rem;
    }

    .upload-buttons {
        gap: 0.5rem;
    }

    .upload-btn {
        padding: 0.65rem;
    }

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

    #userInput {
        font-size: 0.95rem;
        padding: 0.85rem 1rem;
    }

    .send-btn {
        width: 45px;
        height: 45px;
        padding: 0.85rem;
    }

    .send-btn svg {
        width: 20px;
        height: 20px;
    }

    .stats-panel {
        max-width: 100%;
    }

    .stats-header {
        padding: 1.25rem;
    }

    .stats-header h2 {
        font-size: 1.3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
        padding: 1.25rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-icon {
        font-size: 2.25rem;
    }

    .stat-value {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    .chat-section {
        min-height: calc(100vh - 48px);
    }

    .header {
        padding: 0.65rem 0.85rem;
    }

    .logo {
        gap: 0.5rem;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

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

    .stats-btn {
        padding: 0.45rem 0.65rem;
        font-size: 0.8rem;
        gap: 0.35rem;
    }

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

    .welcome-message {
        padding: 1.5rem 1.25rem;
        margin: 1rem auto;
    }

    .welcome-icon {
        font-size: 3rem;
    }

    .welcome-message h2 {
        font-size: 1.25rem;
    }

    .welcome-message p {
        font-size: 1rem;
    }

    .welcome-subtitle {
        font-size: 1rem;
        margin: 1.25rem 0;
    }

    .message-avatar {
        min-width: 32px;
        height: 32px;
        font-size: 0.6rem;
    }

    .message.user .message-avatar {
        font-size: 1rem;
        min-width: 32px;
    }

    .message-content {
        max-width: 88%;
    }

    .input-container {
        padding: 0.85rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .chat-section {
        min-height: calc(100vh - 45px);
    }

    .chat-container {
        padding: 0.75rem;
    }

    .header {
        padding: 0.6rem 0.75rem;
    }

    .logo h1 {
        font-size: 1rem;
    }

    .logo-icon {
        width: 22px;
        height: 22px;
    }

    .stats-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .welcome-message {
        padding: 1.25rem 1rem;
        margin: 0.75rem auto;
    }

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

    .welcome-message h2 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .welcome-message p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .welcome-subtitle {
        font-size: 0.95rem;
        margin: 1rem 0;
    }

    .suggestions {
        gap: 0.65rem;
        margin-top: 1.5rem;
    }

    .suggestion-btn {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .message {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .message-avatar {
        min-width: 30px;
        height: 30px;
        font-size: 0.55rem;
        padding: 0 0.4rem;
    }

    .message.user .message-avatar {
        font-size: 0.95rem;
        min-width: 30px;
    }

    .message-content {
        max-width: 90%;
    }

    .message-bubble {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        border-radius: 14px;
    }

    .message-time {
        font-size: 0.7rem;
        margin-top: 0.4rem;
    }

    .input-container {
        padding: 0.75rem;
    }

    .upload-buttons {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .upload-btn {
        padding: 0.6rem;
    }

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

    .input-wrapper {
        gap: 0.75rem;
    }

    #userInput {
        font-size: 0.9rem;
        padding: 0.75rem 0.95rem;
        border-radius: 14px;
    }

    .send-btn {
        width: 42px;
        height: 42px;
        padding: 0.75rem;
        border-radius: 10px;
    }

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

    .stats-header {
        padding: 1rem;
    }

    .stats-header h2 {
        font-size: 1.15rem;
    }

    .close-btn {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
        padding: 0.85rem;
    }

    .stat-card {
        padding: 0.85rem;
    }

    .stat-icon {
        font-size: 1.85rem;
        margin-bottom: 0.5rem;
    }

    .stat-value {
        font-size: 1.35rem;
        margin-bottom: 0.4rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .stats-chart {
        padding: 1rem;
        margin: 0.75rem;
    }

    .stats-chart h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    #usageChart {
        height: 150px;
    }

    .loading-spinner {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }

    .loading-overlay p {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .chat-section {
        min-height: calc(100vh - 42px);
    }

    .logo h1 {
        font-size: 0.95rem;
    }

    .stats-btn span {
        display: none;
    }

    .stats-btn {
        padding: 0.5rem;
    }

    .welcome-message h2 {
        font-size: 1rem;
        line-height: 1.4;
    }

    .welcome-message p {
        font-size: 0.85rem;
    }

    .welcome-subtitle {
        font-size: 0.9rem;
    }

    .suggestion-btn {
        padding: 0.65rem;
        font-size: 0.8rem;
    }

    .message-avatar {
        min-width: 28px;
        height: 28px;
        font-size: 0.5rem;
    }

    .message.user .message-avatar {
        font-size: 0.9rem;
        min-width: 28px;
    }

    .message-bubble {
        padding: 0.65rem 0.85rem;
        font-size: 0.85rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-icon {
        font-size: 1.65rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

.design-container {
    background: linear-gradient(to bottom, white, #fafffe);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 1rem 0;
    box-shadow: 0 8px 32px var(--shadow-strong), inset 0 1px 0 rgba(255,255,255,0.8);
    border: 3px solid var(--primary-green);
    position: relative;
    overflow: hidden;
}

.design-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green), var(--primary-green));
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

.download-design-btn {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 14px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.download-design-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.download-design-btn:hover::before {
    width: 300px;
    height: 300px;
}

.download-design-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 28px rgba(40, 167, 69, 0.4);
}

.download-design-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.design-mindmap {
    text-align: center;
}

.design-title {
    color: var(--primary-green);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.mindmap-center {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: white;
    padding: 2rem 3rem;
    border-radius: 60px;
    font-size: 1.4rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 28px var(--shadow-strong), 
                0 0 0 4px rgba(40, 167, 69, 0.1),
                inset 0 2px 0 rgba(255,255,255,0.3);
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transform: scale(1);
    transition: all 0.3s ease;
}

.mindmap-center:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 36px var(--shadow-strong), 
                0 0 0 6px rgba(40, 167, 69, 0.15);
}

.mindmap-branches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.mindmap-branch {
    background: linear-gradient(135deg, white, var(--earth-light));
    padding: 1.75rem;
    border-radius: 20px;
    border: 3px solid;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.mindmap-branch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    opacity: 0.7;
}

.mindmap-branch:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px var(--shadow-strong);
}

.branch-0 { 
    border-color: #28a745;
}
.branch-0::before { background: linear-gradient(90deg, #28a745, #34ce57); }

.branch-1 { 
    border-color: #34ce57;
}
.branch-1::before { background: linear-gradient(90deg, #34ce57, #28a745); }

.branch-2 { 
    border-color: #218838;
}
.branch-2::before { background: linear-gradient(90deg, #218838, #28a745); }

.branch-3 { 
    border-color: #1e7e34;
}
.branch-3::before { background: linear-gradient(90deg, #1e7e34, #218838); }

.branch-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-green);
}

.branch-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.branch-item {
    background: white;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-primary);
    text-align: right;
    border-right: 4px solid var(--primary-green);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.08);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.branch-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
    background: linear-gradient(90deg, white, #fafffe);
}

.branch-item::before {
    content: '•';
    position: absolute;
    right: 0.5rem;
    color: var(--primary-green);
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.2s ease;
}

.branch-item:hover::before {
    opacity: 1;
}

.design-presentation {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.presentation-title-slide {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green), var(--primary-green));
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
    color: white;
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(40, 167, 69, 0.3);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.presentation-title-slide::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.presentation-title-slide h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

.presentation-title-slide p {
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.presentation-slide {
    background: linear-gradient(to bottom right, white, var(--earth-light));
    padding: 2.5rem;
    border-radius: 20px;
    border: 3px solid var(--primary-green);
    position: relative;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.12);
    transition: all 0.3s ease;
}

.presentation-slide:hover {
    transform: translateX(-5px);
    box-shadow: 0 10px 32px rgba(40, 167, 69, 0.2);
}

.slide-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-green);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.presentation-slide h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.presentation-slide ul {
    list-style: none;
    padding: 0;
}

.presentation-slide li {
    background: white;
    padding: 1.1rem 1.5rem;
    margin-bottom: 0.85rem;
    border-radius: 12px;
    border-right: 5px solid var(--primary-green);
    font-size: 1.05rem;
    line-height: 1.7;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.08);
    transition: all 0.2s ease;
    position: relative;
}

.presentation-slide li:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 16px rgba(40, 167, 69, 0.15);
}

.presentation-slide li:before {
    content: "✓";
    color: white;
    background: var(--primary-green);
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    margin-left: 0.75rem;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.design-brochure {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.brochure-cover {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
}

.brochure-cover h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.brochure-logo {
    font-size: 4rem;
}

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

.brochure-section {
    background: linear-gradient(135deg, white, var(--earth-light));
    padding: 2rem;
    border-radius: 20px;
    border: 3px solid var(--primary-green);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.brochure-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(40, 167, 69, 0.05), transparent);
    transition: all 0.5s ease;
}

.brochure-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 32px rgba(40, 167, 69, 0.2);
}

.brochure-section:hover::before {
    top: 0;
    right: 0;
}

.brochure-section h3 {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.brochure-section p {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1rem;
}

.section-0 {
    background: linear-gradient(135deg, #f7fdf7, #f0f8f0);
}

.section-1 {
    background: linear-gradient(135deg, #f0f8f0, #e8f5e8);
}

.design-poster {
    background: linear-gradient(135deg, var(--earth-light), white);
    border: 4px solid var(--primary-green);
}

.poster-header {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green), var(--dark-green));
    background-size: 200% 200%;
    animation: gradientMove 8s ease infinite;
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 16px 16px 0 0;
    margin: -2.5rem -2.5rem 2rem -2.5rem;
    position: relative;
    overflow: hidden;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.poster-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: slide 2s infinite;
}

@keyframes slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.poster-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-shadow: 0 4px 16px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
}

.poster-header h2 {
    font-size: 1.4rem;
    opacity: 0.95;
    font-weight: 500;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.poster-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1rem;
}

.poster-point {
    background: linear-gradient(to left, white, #fafffe);
    padding: 1.4rem 1.75rem;
    border-radius: 16px;
    border-right: 6px solid var(--primary-green);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 1.15rem;
    font-weight: 500;
    box-shadow: 0 5px 16px var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.poster-point::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: linear-gradient(to bottom, var(--primary-green), var(--light-green));
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.poster-point:hover {
    transform: translateX(-10px);
    box-shadow: 0 8px 28px var(--shadow-strong);
}

.poster-point:hover::before {
    transform: translateX(0);
}

.point-icon {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    position: relative;
}

.point-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--primary-green);
    opacity: 0;
    transition: all 0.3s ease;
}

.poster-point:hover .point-icon::after {
    opacity: 1;
    inset: -6px;
}

.poster-footer {
    background: var(--earth-bg);
    padding: 1.5rem;
    text-align: center;
    border-radius: 0 0 12px 12px;
    margin: 2rem -2rem -2rem -2rem;
    border-top: 3px solid var(--primary-green);
}

.poster-footer p {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .design-container {
        padding: 1.5rem;
    }

    .design-title {
        font-size: 1.5rem;
    }

    .mindmap-center {
        font-size: 1.1rem;
        padding: 1.25rem 2rem;
    }

    .mindmap-branches {
        grid-template-columns: 1fr;
    }

    .presentation-title-slide h1 {
        font-size: 1.8rem;
    }

    .presentation-slide h3 {
        font-size: 1.3rem;
    }

    .brochure-cover h1 {
        font-size: 1.6rem;
    }

    .brochure-content {
        grid-template-columns: 1fr;
    }

    .poster-header h1 {
        font-size: 2rem;
    }

    .poster-header h2 {
        font-size: 1.1rem;
    }

    .poster-point {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .design-container {
        padding: 1rem;
    }

    .design-title {
        font-size: 1.3rem;
    }

    .mindmap-center {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }

    .branch-title {
        font-size: 1.1rem;
    }

    .branch-item {
        font-size: 0.9rem;
        padding: 0.65rem 0.85rem;
    }

    .presentation-title-slide {
        padding: 2rem 1.5rem;
    }

    .presentation-title-slide h1 {
        font-size: 1.5rem;
    }

    .presentation-slide {
        padding: 1.5rem;
    }

    .presentation-slide h3 {
        font-size: 1.2rem;
    }

    .presentation-slide li {
        font-size: 0.9rem;
        padding: 0.85rem 1rem;
    }

    .brochure-cover {
        padding: 2rem 1.5rem;
    }

    .brochure-cover h1 {
        font-size: 1.4rem;
    }

    .brochure-logo {
        font-size: 3rem;
    }

    .brochure-section {
        padding: 1.25rem;
    }

    .brochure-section h3 {
        font-size: 1.15rem;
    }

    .brochure-section p {
        font-size: 0.95rem;
    }

    .poster-header {
        padding: 2rem 1.5rem;
    }

    .poster-header h1 {
        font-size: 1.6rem;
    }

    .poster-header h2 {
        font-size: 1rem;
    }

    .poster-point {
        font-size: 0.95rem;
        padding: 1rem 1.25rem;
    }

    .point-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .download-design-btn {
        width: 100%;
        padding: 0.85rem 1.25rem;
        font-size: 0.9rem;
    }
}
