@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #f4f6f9;
    --navy-primary: #0a192f;
    --navy-secondary: #172a45;
    --orange-accent: #f05a28;
    --orange-hover: #d4481d;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(240, 90, 40, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(10, 25, 47, 0.05) 0px, transparent 50%);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex-grow: 1;
}

/* Header & Logo Placeholder */
.brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
}

.brand-logo {
    max-height: 90px;
    width: auto;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.brand-header h1 {
    font-size: 2.2rem;
    color: var(--navy-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.brand-header h1 span {
    color: var(--orange-accent);
}

.tagline {
    font-size: 1.1rem;
    color: var(--orange-accent);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

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

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--navy-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.back-btn:hover {
    background: var(--navy-primary);
    color: #ffffff;
    border-color: var(--navy-primary);
    transform: translateX(-3px);
}

/* Sessions Grid */
.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* Cards */
.session-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.session-card:hover {
    transform: translateY(-5px);
    border-color: var(--orange-accent);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.session-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(240, 90, 40, 0.1);
    color: var(--orange-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.session-card:hover .session-icon {
    background: var(--orange-accent);
    color: #ffffff;
    transform: scale(1.05);
}

.session-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy-primary);
    margin-bottom: 0.5rem;
}

.session-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Files Container */
.files-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.session-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-color);
}

.session-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy-primary);
}

.file-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--bg-color);
    border: 1px solid transparent;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.file-item:hover {
    background: #ffffff;
    border-color: var(--card-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-icon {
    font-size: 1.4rem;
}

.file-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy-primary);
}

.file-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--navy-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.download-btn:hover {
    background: var(--orange-accent);
    border-color: var(--orange-accent);
    color: #ffffff;
    transform: scale(1.05);
}

.no-files {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.no-files-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Footer style reflecting bottom bar */
footer {
    background: var(--navy-primary);
    color: #ffffff;
    text-align: center;
    padding: 2.5rem 1rem;
    margin-top: auto;
    border-top: 4px solid var(--orange-accent);
    font-size: 0.9rem;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 0.5rem;
}

.footer-logos img {
    height: 40px;
    width: auto;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.footer-logos img:hover {
    transform: scale(1.05);
}

/* Admin Styles */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.admin-actions-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-btn-primary {
    background: var(--navy-primary);
    color: white;
    border: 1px solid var(--navy-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-btn-primary:hover {
    background: var(--orange-accent);
    border-color: var(--orange-accent);
}

.upload-inline-form {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.upload-wrapper {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.file-input-field {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem;
    background: white;
    border: 1px solid var(--card-border);
    border-radius: 6px;
}

.admin-btn-upload {
    background: var(--orange-accent);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.admin-btn-upload:hover {
    background: var(--orange-hover);
}

.delete-session-btn {
    background: transparent;
    color: #ef4444;
    border: 1px solid #fca5a5;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-session-btn:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.delete-file-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.delete-file-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}


footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

footer a {
    color: var(--orange-accent);
    text-decoration: none;
    font-weight: 600;
}
