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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    color: #2d3748;
}

/* Navigation */
nav {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

nav h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 400;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    font-weight: 500;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

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

/* Page Wrapper */
.page-wrapper {
    padding: 2rem 0;
}

/* Section Styles */
.section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(15, 118, 110, 0.08);
    border-top: 4px solid #06b6d4;
    transition: box-shadow 0.3s ease;
}

.section:hover {
    box-shadow: 0 4px 16px rgba(15, 118, 110, 0.12);
}

.section h2 {
    color: #0f766e;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section h2::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 24px;
    background: #06b6d4;
    border-radius: 2px;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

input[type="text"],
input[type="file"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

input[type="text"]:focus,
input[type="file"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #06b6d4;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    accent-color: #0d9488;
}

textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

textarea:focus {
    outline: none;
    border-color: #06b6d4;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* Button Styles */
button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.15);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.08);
}

button:disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.08);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.checkbox-group label {
    margin-bottom: 0;
}

/* File List Styles */
.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-item {
    background: #f9fafb;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    border-radius: 6px;
    border-left: 4px solid #06b6d4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-item:hover {
    background-color: #eef8f7;
    border-left-color: #0d9488;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.1);
}

.file-name {
    flex: 1;
    font-weight: 500;
    color: #2d3748;
}

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

.file-actions button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Scenes Page Styles */
.scene-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.scene-item {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #06b6d4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.scene-item:hover {
    background-color: #eef8f7;
    border-left-color: #0d9488;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.08);
    transform: translateY(-2px);
}

.scene-name {
    flex: 1;
    font-weight: 600;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scene-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: 0.75rem;
}

.scene-actions button {
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 6px;
    background: transparent;
    color: #0f766e;
    border: 1px solid rgba(15, 118, 110, 0.12);
    cursor: pointer;
    transition: all 0.2s ease;
}

.scene-actions button:hover {
    background: #0f766e;
    color: white;
    border-color: #0f766e;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.12);
}

@media (max-width: 768px) {
    .scene-list {
        grid-template-columns: 1fr;
    }

    .scene-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .scene-actions {
        width: 100%;
        margin-top: 0.5rem;
        flex-wrap: wrap;
    }

    .scene-actions button {
        flex: 1 1 100%;
        min-width: 0;
    }
}

/* Flash Messages */
.flashes {
    list-style: none;
    padding: 1rem;
    margin-bottom: 2rem;
    background-color: #d1fae5;
    border: 1px solid #6ee7b7;
    border-radius: 6px;
    color: #047857;
    border-left: 4px solid #10b981;
}

.flashes li {
    margin: 0.5rem 0;
}

/* Login Page */
.login-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 70px);
    padding: 2rem;
}

.login-container {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.1);
    width: 100%;
    max-width: 400px;
    border-top: 4px solid #06b6d4;
}

.login-container h1 {
    text-align: center;
    color: #0f766e;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.signup-link {
    text-align: center;
    margin-top: 1.5rem;
}

.signup-link a {
    color: #0d9488;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: #0f766e;
    text-decoration: underline;
}

/* Register Page */
.register-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 70px);
}

.register-container {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.1);
    width: 100%;
    max-width: 400px;
    border-top: 4px solid #06b6d4;
}

.register-container h1 {
    text-align: center;
    color: #0f766e;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.login-link {
    text-align: center;
    margin-top: 1.5rem;
}

.login-link a {
    color: #0d9488;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: #0f766e;
    text-decoration: underline;
}

/* Share Page */
.share-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 70px);
    padding: 2rem 0;
}

.share-container {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.1);
    width: 100%;
    max-width: 500px;
    border-top: 4px solid #06b6d4;
}

.share-container h1 {
    text-align: center;
    color: #0f766e;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 600;
}
/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav h1 {
        font-size: 1.25rem;
    }

    nav div {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        margin-left: 0;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .section {
        padding: 1.5rem;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-actions {
        width: 100%;
        margin-top: 0.75rem;
        flex-wrap: wrap;
    }

    .file-actions button {
        flex: 1;
        min-width: 80px;
    }
}