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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
}

.header {
    padding: 5px 30px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
    display: block;
}

.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* White card in center (matches login form) */
.center-card {
    max-width: 400px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 400px;
    width: 100%;
}

.button-wrapper {
    position: relative;
    width: 100%;
}

.main-button,
a.main-button {
    width: 100%;
    padding: 20px 30px;
    font-size: 18px;
    font-weight: 600;
    color: rgb(255, 255, 255);
    background: linear-gradient(180deg, #6b7280 0%, #4b5563 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: block;
    text-align: center;
}

.main-button:hover {
    color: rgb(0, 0, 0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.main-button:active {
    transform: translateY(0);
}

.button-wrapper:nth-child(1) .main-button {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.button-wrapper:nth-child(1) .main-button:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

.button-wrapper:nth-child(2) .main-button {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.button-wrapper:nth-child(2) .main-button:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
}

.button-wrapper:nth-child(3) .main-button {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.button-wrapper:nth-child(3) .main-button:hover {
    background: linear-gradient(135deg, #38f9d7 0%, #43e97b 100%);
}

.tooltip {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-right-color: rgba(0, 0, 0, 0.9);
}

.button-wrapper:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
    .tooltip {
        left: 50%;
        top: 100%;
        margin-left: 0;
        margin-top: 15px;
        transform: translateX(-50%) translateY(-10px);
        white-space: normal;
        max-width: 250px;
    }

    .tooltip::before {
        right: 50%;
        top: 0;
        transform: translateX(50%) translateY(-100%);
        border-right-color: transparent;
        border-bottom-color: rgba(0, 0, 0, 0.9);
        border-top-color: transparent;
        border-left-color: transparent;
    }

    .button-wrapper:hover .tooltip {
        transform: translateX(-50%) translateY(0);
    }

    .logo {
        height: 40px;
    }

    .header {
        padding: 5px 20px;
    }
}

/* User info styles */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #333;
}

.user-info a {
    color: #333;
    text-decoration: none;
    padding: 4px 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.user-info a:hover {
    background: rgba(102, 126, 234, 0.2);
}

/* Content container styles */
.content-container {
    max-width: 1200px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

/* Soundbites list styles */
.soundbites-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.soundbite-item {
    background: #f8f9fa;
    border: 2px solid #b6b6b6;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.soundbite-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.soundbite-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.soundbite-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.soundbite-topic {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.soundbite-date {
    font-size: 12px;
    color: #6b7280;
}

.soundbite-user {
    font-size: 12px;
    color: #6b7280;
}

.soundbite-script {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Empty state styles */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

/* Back button styles */
.back-button {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.back-button:hover {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Upload page: message and form styles */
.upload-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.upload-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.upload-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.soundbite-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.file-status {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.upload-form {
    display: inline;
}

.file-input {
    display: none;
}

.upload-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upload-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.upload-btn:active {
    transform: translateY(0);
}

.back-links {
    text-align: center;
    margin-top: 30px;
}

/* Download page: download button */
.download-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
}

.download-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white;
}

.download-btn:active {
    transform: translateY(0);
}

/* Request page: form container and form styles */
.form-container {
    max-width: 800px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    font-size: 16px;
    font-family: inherit;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group select {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-family: inherit;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cancel {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    text-decoration: none;
    display: inline-block;
}

.btn-cancel:hover {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-submit {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    color: white;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-submit:active,
.btn-cancel:active {
    transform: translateY(0);
}

.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.required-marker {
    color: red;
}

/* Login page styles */
.login-container {
    max-width: 400px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
}

.login-container .form-group {
    margin-bottom: 20px;
}

.login-container .form-group label {
    margin-bottom: 8px;
    color: #555;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #fcc;
}

.login-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.login-button:active {
    transform: translateY(0);
}

/* Responsive: upload and content pages */
@media (max-width: 768px) {
    .content-container {
        padding: 25px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .soundbite-header {
        flex-direction: column;
    }
}

/* Responsive: request form page */
@media (max-width: 768px) {
    .form-container {
        padding: 25px;
    }
    
    .form-title {
        font-size: 24px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

