/* src/css/styles.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #4CAF50;
    --secondary-color: #2E7D32;
    --accent-color: #8BC34A;
    --dark-bg: #1a1a1a;
    --light-text: #ffffff;
    --gray-text: #a0a0a0;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

html {
    height: 100%;
    background: #1a1a1a;
    color: white;
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #EEE;
    margin: 0;
    background-image: url('/images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: "Quicksand", sans-serif;
    font-weight: 400;
    color: var(--light-text);
    line-height: 1.6;
    background-color: var(--dark-bg);
}

#backgroundVideo {
    object-fit: cover;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

.site-wrapper {
    position: relative;
    min-height: 100vh;
    z-index: 1;
    background: rgba(26, 26, 26, 0.7);
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.logo-container {
    flex: 0 0 200px;
}

.logo {
    max-width: 100%;
    height: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav-link:hover {
    color: var(--accent-color);
}

.team-login-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    transition: background-color 0.3s;
}

.team-login-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Main Content Styles */
main {
    padding: 2rem 0;
}

.section {
    padding: 4rem 0;
    scroll-margin-top: 80px;
}

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

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

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

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

.btn-secondary {
    background-color: transparent;
    color: var(--light-text);
    border: 2px solid var(--primary-color);
}

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

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Welcome Section */
#welcome {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
    padding: 0;
}

#welcome .container {
    max-width: 800px;
}

#welcome h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#welcome .lead {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

#welcome .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* About Section */
.content-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Schedule Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 120px;
    width: 4px;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    padding-left: 150px;
    margin-bottom: 2rem;
}

.timeline-date {
    position: absolute;
    left: 0;
    width: 100px;
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
}

.timeline-content {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    width: 20px;
    height: 4px;
    background-color: var(--primary-color);
}

/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.resource-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.resource-card-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.resource-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.resource-card::after {
    content: "↗";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.resource-card-link:hover .resource-card::after {
    opacity: 0.7;
}

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

/* Form Styles */
.form {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 800px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

input, textarea, select {
    width: 100%;
    padding: 0.8rem;
    border-radius: var(--border-radius);
    border: 1px solid #444;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    font-family: inherit;
    font-size: 1rem;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.member-input {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Team Dashboard */
.hidden {
    display: none;
}

.dashboard-welcome {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.dashboard-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: var(--border-radius);
    color: var(--light-text);
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Footer Styles */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo-img {
    max-width: 150px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--gray-text);
    text-decoration: none;
    transition: color 0.3s;
    line-height: 2;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    color: var(--gray-text);
    margin-bottom: 0.5rem;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }

    .logo-container {
        margin-bottom: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-date {
        position: relative;
        left: -30px;
        width: auto;
        text-align: left;
        margin-bottom: 0.5rem;
    }

    .timeline-content::before {
        display: none;
    }

    .member-input {
        grid-template-columns: 1fr;
    }
}

/* Auth visibility classes */
.logged-in {
    display: none !important;
}

.logged-out {
    display: block;
}

body.is-logged-in .logged-in {
    display: block !important;
}

body.is-logged-in .logged-out {
    display: none !important;
}

body.is-logged-in nav .logged-in {
    display: list-item !important;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: rgba(30, 30, 30, 0.95);
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s;
}

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

.close-modal {
    color: var(--gray-text);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

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

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    color: var(--gray-text);
    font-style: italic;
}

.loading-spinner::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Two-column form */
.two-column-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.form-actions {
    grid-column: span 2;
    margin-top: 1.5rem;
    text-align: center;
}

/* Team members */
.team-members-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.add-member-btn {
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
    background-color: var(--secondary-color);
}

#team-members-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.team-member-item {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    padding: 1rem;
    position: relative;
}

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

.member-header h4 {
    margin: 0;
}

.remove-member-btn {
    background: none;
    border: none;
    color: var(--gray-text);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.remove-member-btn:hover {
    color: #ff4d4d;
}

/* Modal adjustments */
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
}

@media (max-width: 768px) {
    .two-column-form {
        grid-template-columns: 1fr;
    }

    .form-actions {
        grid-column: 1;
    }
}

/* Team Members Input */
.team-members-input {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.member-input-row {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    position: relative;
}

.member-input-row input {
    flex: 1;
}

.member-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
}

.remove-member-btn {
    background-color: transparent;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: var(--border-radius);
    transition: background-color 0.2s;
}

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

.member-count {
    color: var(--gray-text);
    font-size: 0.9rem;
    font-weight: normal;
}

.add-member-btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

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

/* New Dashboard Layout */
.dashboard-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.dashboard-title h2 {
    margin: 0;
    font-size: 1.75rem;
    color: var(--primary-color);
}

.dashboard-subtitle {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
}

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

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.25rem;
    color: var(--light-text);
}

.icon-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.projects-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

#projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    grid-column: 1 / -1;
}

.empty-state p {
    color: var(--light-text);
    margin: 0;
    font-size: 1.2rem;
    max-width: 400px;
    line-height: 1.5;
}

.empty-state .btn {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.empty-state .btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Project card styles */
.project-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-thumbnail {
    width: 120px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.project-info {
    flex: 1;
}

.project-card h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.project-description {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.project-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* WYSIWYG Editor Styles */
#wysiwyg-toolbar {
    display: flex;
    gap: 5px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px 4px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
}

.wysiwyg-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wysiwyg-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.wysiwyg-btn.active {
    background: rgba(255, 255, 255, 0.3);
}

.wysiwyg-content {
    min-height: 150px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 4px 4px;
    color: white;
    outline: none;
    overflow-y: auto;
    line-height: 1.5;
}

.wysiwyg-content:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

.wysiwyg-content ul, .wysiwyg-content ol {
    margin-left: 1.5rem;
}

.wysiwyg-content a {
    color: #64b5f6;
    text-decoration: none;
}

.wysiwyg-content a:hover {
    text-decoration: underline;
}

/* Confirmation Dialog */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.confirm-dialog.show {
    opacity: 1;
    visibility: visible;
}

.confirm-dialog-content {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 8px;
    padding: 1.5rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.confirm-dialog.show .confirm-dialog-content {
    transform: translateY(0);
}

.confirm-dialog h3 {
    margin-top: 0;
    color: #ff5252;
}

.confirm-dialog p {
    margin-bottom: 1.5rem;
}

.confirm-dialog-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Notification styles */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.9rem;
    z-index: 1000;
    max-width: 300px;
    animation: slideIn 0.3s ease forwards;
}

.notification.fade-out {
    animation: slideOut 0.3s ease forwards;
}

.notification.success {
    background: rgba(46, 204, 113, 0.9);
}

.notification.error {
    background: rgba(231, 76, 60, 0.9);
}

.notification.info {
    background: rgba(52, 152, 219, 0.9);
}

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

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}