/* ==============================================
   Global Styles
   ============================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #e0e0e0;
    line-height: 1.6;
}

h1, h2, h3 {
    margin: 0 0 1rem 0;
    color: #ffffff;
    font-weight: 600;
}

h1 { 
    font-size: clamp(1.5rem, 5vw, 2rem);
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
h2 { 
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    color: #ffffff;
}
h3 { 
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: #e0e0e0;
}

p {
    margin: 0.5rem 0;
    color: #b0b0b0;
}

/* ==============================================
   Layout Containers
   ============================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.page-container {
    max-width: 1000px;
    width: 100%;
    margin: 1rem auto;
    padding: 2rem;
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.narrow-container {
    max-width: 600px;
    width: 100%;
    margin: 1rem auto;
    padding: 2rem;
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.page-container p,
.narrow-container p {
    color: #b0b0b0;
}

.page-container h1,
.page-container h2,
.page-container h3,
.narrow-container h1,
.narrow-container h2,
.narrow-container h3 {
    color: #ffffff;
}

/* ==============================================
   Buttons
   ============================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c8ef7 0%, #8a5bb5 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(108, 117, 125, 0.3);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(108, 117, 125, 0.5);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #00d2ff 0%, #3a47d5 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-success:hover {
    background: linear-gradient(135deg, #1de2ff 0%, #4d5ee6 100%);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #f857a6 0%, #ff5858 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff6bb7 0%, #ff6969 100%);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    display: block;
}

/* ==============================================
   Forms
   ============================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #e0e0e0;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s;
    background: rgba(40, 40, 60, 0.5);
    color: #e0e0e0;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
    background: rgba(40, 40, 60, 0.7);
}

.form-control::placeholder {
    color: #808080;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    background: rgba(40, 40, 60, 0.5);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

select.form-control option {
    background: #1e1e2e;
    color: #e0e0e0;
}

.form-help {
    font-size: 0.875rem;
    color: #b0b0b0;
    margin-top: 0.25rem;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
    color: #e0e0e0;
}

input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: #667eea;
}

input[type="date"] {
    color-scheme: dark;
}

/* ==============================================
   Messages
   ============================================== */
.message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid;
    backdrop-filter: blur(10px);
}

.message-error {
    background: rgba(248, 135, 154, 0.2);
    border-color: #f857a6;
    color: #ffb3c6;
}

.message-success {
    background: rgba(0, 210, 255, 0.2);
    border-color: #00d2ff;
    color: #8ef6ff;
}

.message-info {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    color: #b3c5ff;
}

/* ==============================================
   Extension Accordions
   ============================================== */
.extension-accordion {
    margin-bottom: 1rem;
    border: 1px solid rgba(118, 132, 255, 0.45);
    border-radius: 12px;
    background: linear-gradient(140deg, rgba(28, 31, 54, 0.92), rgba(17, 19, 33, 0.92));
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.extension-accordion-header,
.extension-accordion .accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    background: linear-gradient(120deg, rgba(26, 28, 46, 0.95), rgba(19, 22, 36, 0.9));
    border-bottom: 1px solid rgba(118, 132, 255, 0.45);
    transition: background 0.2s ease, border-color 0.2s ease;
    user-select: none;
}

.extension-accordion-header:hover,
.extension-accordion .accordion-header:hover {
    background: rgba(102, 126, 234, 0.12);
    border-color: rgba(118, 132, 255, 0.6);
}

.extension-accordion-header h4,
.extension-accordion .accordion-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #e7e9ff;
    letter-spacing: 0.01em;
}

.extension-accordion-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.extension-accordion-toggle,
.extension-accordion .accordion-icon {
    font-size: 1rem;
    color: #cdd3ff;
    transition: transform 0.3s ease, color 0.2s ease;
}

.extension-accordion-toggle.expanded,
.extension-accordion .accordion-icon.open {
    transform: rotate(180deg);
    color: #8fa2ff;
}

.extension-accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.25rem;
    background: radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.05), transparent 45%), rgba(14, 16, 28, 0.85);
    border-top: 1px solid rgba(118, 132, 255, 0.25);
    transition: max-height 0.3s ease-out, padding 0.2s ease;
}

.extension-accordion-content.expanded {
    max-height: 2400px;
    padding: 1rem 1.25rem 1.25rem;
}

.extension-accordion .accordion-content {
    padding: 1rem 1.25rem 1.25rem;
    background: radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.05), transparent 45%), rgba(14, 16, 28, 0.85);
    border-top: 1px solid rgba(118, 132, 255, 0.25);
    animation: extensionSlideDown 0.25s ease;
}

.extension-remove-btn {
    background: rgba(220, 38, 38, 0.15);
    color: #ef4444;
    border: 1px solid rgba(220, 38, 38, 0.45);
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.extension-remove-btn:hover {
    background: rgba(220, 38, 38, 0.22);
    border-color: rgba(220, 38, 38, 0.65);
    color: #ff6b6b;
}

@keyframes extensionSlideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 2400px;
    }
}

/* ==============================================
   Cards & Items
   ============================================== */
.card {
    background: rgba(40, 40, 60, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.3);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.card-text {
    color: #b0b0b0;
    margin: 0.5rem 0;
}

.card p {
    color: #b0b0b0;
}

.card strong {
    color: #e0e0e0;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-public {
    background: linear-gradient(135deg, #00d2ff 0%, #3a47d5 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 210, 255, 0.3);
}

.badge-private {
    background: rgba(108, 117, 125, 0.4);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ==============================================
   Grid & Flexbox Utilities
   ============================================== */
.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

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

.flex-gap {
    gap: 1rem;
}

.grid {
    display: grid;
    gap: 1rem;
}

/* ==============================================
   User Info Section
   ============================================== */
.user-info {
    background: rgba(40, 40, 60, 0.6);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.user-info h2 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.user-info p {
    color: #b0b0b0;
    margin: 0.25rem 0;
}

/* ==============================================
   Action Buttons
   ============================================== */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

/* ==============================================
   Lock Items
   ============================================== */
.lock-item {
    background: rgba(40, 40, 60, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lock-item:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.3);
}

.lock-card-hover {
    cursor: default;
    position: relative;
}

.lock-card-hover:hover {
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    border-color: rgba(102, 126, 234, 0.5);
}

.lock-item h3 {
    color: #ffffff;
}

.lock-item p {
    color: #b0b0b0;
}

.lock-item strong {
    color: #e0e0e0;
}

.lock-meta {
    font-size: 0.875rem;
    color: #808080;
    margin-top: 0.75rem;
}

/* ==============================================
   Invitation URL
   ============================================== */
.invite-link-container {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.invite-url-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.875rem;
    background: rgba(40, 40, 60, 0.5);
    color: #e0e0e0;
    min-width: 0;
}

.copy-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.875rem;
    transition: all 0.3s;
    font-weight: 600;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #7c8ef7 0%, #8a5bb5 100%);
    transform: translateY(-1px);
}

.copy-status {
    color: #00d2ff;
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 80px;
}

/* ==============================================
   Search
   ============================================== */
.search-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(40, 40, 60, 0.5);
    color: #e0e0e0;
}

.search-input::placeholder {
    color: #808080;
}

/* ==============================================
   Duration Input (Time Picker)
   ============================================== */
.duration-input {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: rgba(40, 40, 60, 0.6);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
    backdrop-filter: blur(10px);
}

.duration-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.duration-unit input {
    width: 60px;
    height: 50px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 12px;
    background: rgba(40, 40, 60, 0.5);
    color: #ffffff;
    cursor: ns-resize;
    transition: all 0.3s;
}

.duration-unit input:hover {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.duration-unit label {
    font-size: 0.875rem;
    color: #b0b0b0;
    font-weight: normal;
}

.btn-increment,
.btn-decrement {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(102, 126, 234, 0.5);
    background: rgba(40, 40, 60, 0.5);
    color: #e0e0e0;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s;
}

.btn-increment:hover,
.btn-decrement:hover {
    border-color: #667eea;
    color: #ffffff;
    background: rgba(102, 126, 234, 0.3);
    transform: scale(1.1);
}

/* ==============================================
   Session Countdown
   ============================================== */
.countdown-container {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin: 2rem 0;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.countdown-label {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.countdown-units {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-value {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    min-width: 80px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.5);
}

.time-label {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
}

/* ==============================================
   Image Display
   ============================================== */
.image-container {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(40, 40, 60, 0.4);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==============================================
   Empty States
   ============================================== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #808080;
}

.empty-state p {
    font-size: 1.125rem;
    color: #808080;
}

/* ==============================================
   Filter Controls
   ============================================== */
.filter-controls {
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    color: #e0e0e0;
    font-size: 0.875rem;
    font-weight: 500;
}

.filter-group select {
    padding: 0.75rem;
    background: rgba(22, 22, 34, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.filter-group select option {
    background: #1a1a2e;
    color: #ffffff;
}

/* ==============================================
   Session List
   ============================================== */
.session-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.session-card {
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.1);
}

.session-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.session-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.25rem;
}

.session-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-row {
    display: flex;
    gap: 1rem;
}

.info-label {
    color: #b0b0b0;
    font-weight: 500;
    min-width: 100px;
}

.info-value {
    color: #e0e0e0;
    flex: 1;
}

.session-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==============================================
   Key Image Container
   ============================================== */
.key-image-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.key-image-container.show {
    opacity: 1;
    max-height: 1000px;
}

.key-image-wrapper {
    padding: 1rem;
    background: rgba(40, 40, 60, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 500px;
    overflow: hidden;
}

.key-image {
    max-width: 100%;
    max-height: 450px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    display: block;
}

/* ==============================================
   Links
   ============================================== */
.link-back {
    display: inline-block;
    margin-top: 2rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.link-back:hover {
    color: #8a9ef7;
    text-decoration: underline;
}

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

/* ==============================================
   Responsive Design - Tablet
   ============================================== */
@media (max-width: 768px) {
    .page-container,
    .narrow-container {
        margin: 0.5rem;
        padding: 1.5rem;
        width: calc(100% - 1rem);
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }

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

    .duration-input {
        gap: 0.75rem;
        padding: 1rem;
    }

    .duration-unit input {
        width: 50px;
        height: 45px;
        font-size: 1.25rem;
    }

    .btn-increment,
    .btn-decrement {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .time-value {
        font-size: 2rem;
        min-width: 60px;
    }

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

    .search-input {
        width: 100%;
    }

    .invite-link-container {
        flex-direction: column;
        align-items: stretch;
    }

    .copy-btn {
        width: 100%;
    }

    .copy-status {
        text-align: center;
    }
}

/* ==============================================
   Responsive Design - Mobile
   ============================================== */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .page-container,
    .narrow-container {
        margin: 0.25rem;
        padding: 1rem;
        border-radius: 8px;
        width: calc(100% - 0.5rem);
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }

    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .form-control {
        padding: 0.625rem;
        font-size: 0.875rem;
    }

    .duration-input {
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .duration-unit input {
        width: 45px;
        height: 40px;
        font-size: 1.125rem;
    }

    .btn-increment,
    .btn-decrement {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }

    .countdown-container {
        padding: 1.5rem 0.75rem;
    }

    .countdown-units {
        gap: 0.75rem;
    }

    .time-value {
        font-size: 1.5rem;
        min-width: 50px;
    }

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

    .card,
    .lock-item {
        padding: 1rem;
    }

    .user-info {
        padding: 1rem;
    }
}

/* ==============================================
   Session Edit Page
   ============================================== */
.session-info-card {
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.1);
}

.info-section h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.form-card {
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.1);
}

.form-card h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

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

.edit-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(22, 22, 34, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    color: #b0b0b0;
    font-size: 0.875rem;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-quick {
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 8px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-quick:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: #667eea;
    transform: translateY(-1px);
}
/* ==============================================
   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.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: rgba(30, 30, 46, 0.95);
    margin: 5% auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: modalFadeIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    color: #ffffff;
}

.modal-body {
    padding: 20px 25px;
    max-height: 70vh;
    overflow: auto;
}

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

.close {
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    padding: 0;
    background: none;
    border: none;
}

.close:hover,
.close:focus {
    color: #fff;
}

/* ==============================================
   Markdown Content Styles
   ============================================== */
.markdown-content {
    color: #e0e0e0;
    line-height: 1.8;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    color: #ffffff;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.markdown-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.5);
    padding-bottom: 0.5rem;
}

.markdown-content h2 {
    font-size: 1.75rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
    padding-bottom: 0.5rem;
}

.markdown-content h3 {
    font-size: 1.5rem;
}

.markdown-content p {
    margin: 1rem 0;
    color: #b0b0b0;
}

.markdown-content a {
    color: #88b4ff;
    text-decoration: underline;
}

.markdown-content a:hover {
    color: #a0c4ff;
}

.markdown-content ul,
.markdown-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.markdown-content li {
    margin: 0.5rem 0;
    color: #b0b0b0;
}

.markdown-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    font-size: 0.9em;
    color: #ffa07a;
}

.markdown-content pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.markdown-content pre code {
    background: none;
    padding: 0;
    color: #e0e0e0;
}

.markdown-content blockquote {
    border-left: 4px solid rgba(102, 126, 234, 0.5);
    padding-left: 1rem;
    margin: 1rem 0;
    color: #b0b0b0;
    font-style: italic;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.markdown-content table th,
.markdown-content table td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem;
    text-align: left;
}

.markdown-content table th {
    background: rgba(102, 126, 234, 0.2);
    color: #ffffff;
    font-weight: 600;
}

.markdown-content table td {
    background: rgba(40, 40, 60, 0.3);
    color: #b0b0b0;
}

.markdown-content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.markdown-content strong {
    color: #ffffff;
    font-weight: 600;
}

.markdown-content em {
    color: #d0d0d0;
    font-style: italic;
}
