:root {
    --bg-primary: #040408;
    --bg-secondary: #0a0a14;
    --card-bg: rgba(13, 13, 24, 0.65);
    --card-border: rgba(255, 255, 255, 0.06);
    --accent-start: #ff3333;
    --accent-end: #ff8000;
    --accent-gradient: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    --text-primary: #f0f0f5;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --success: #00e676;
    --danger: #ff1744;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 51, 51, 0.25);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 51, 51, 0.5);
}

/* Dashboard Metrics Bar */
.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 968px) {
    .dashboard-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 580px) {
    .dashboard-metrics {
        grid-template-columns: 1fr;
    }
}
.metric-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.metric-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.03);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.metric-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.1rem;
    font-family: var(--font-heading);
    line-height: 1.1;
}
.metric-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Blur Blobs */
.background-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.blob-1 {
    top: -10%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: var(--accent-gradient);
}

.blob-2 {
    bottom: -10%;
    left: 5%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #00f2fe, #4facfe);
}

/* Layout */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--card-border);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 51, 51, 0.5));
}

.logo-area h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-area .subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--card-border);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.indicator.active {
    background-color: var(--success);
    box-shadow: 0 0 10px var(--success);
}

/* Main Grid */
.app-main {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 968px) {
    .app-main {
        grid-template-columns: 1fr;
    }
}

/* Card Style */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-premium);
}

h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Input Fields */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.input-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-start);
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.25);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    width: 100%;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 51, 51, 0.5);
}

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

/* Pulsierender Lade-Glow */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 10px rgba(255, 51, 51, 0.3); }
    50% { box-shadow: 0 0 25px rgba(255, 51, 51, 0.65); }
    100% { box-shadow: 0 0 10px rgba(255, 51, 51, 0.3); }
}
.btn-primary:disabled {
    animation: pulse-glow 2s infinite;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-success {
    background: var(--success);
    color: black;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
}

.btn-danger {
    background: rgba(255, 23, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(255, 23, 68, 0.2);
}

.btn-danger:hover {
    background: rgba(255, 23, 68, 0.2);
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

.spinner.large {
    width: 40px;
    height: 40px;
    border-width: 4px;
    border-top-color: var(--accent-end);
    margin-bottom: 1rem;
}

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

.hidden {
    display: none !important;
}

/* Client Info inside Sidebar */
.client-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.client-info h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.client-info ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.client-info li {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Drafts Panel & Grid */
.drafts-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.drafts-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Empty State */
.empty-state, .loading-state {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--card-bg);
    border: 1px dashed var(--card-border);
    border-radius: 16px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Draft Card */
.draft-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.draft-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6);
}

/* Card Header */
.draft-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.draft-card-title h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.draft-platform {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge-status {
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-draft {
    background: rgba(255, 128, 0, 0.1);
    color: var(--accent-end);
    border: 1px solid rgba(255, 128, 0, 0.2);
}

.status-approved {
    background: rgba(0, 230, 118, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.status-rejected {
    background: rgba(255, 23, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(255, 23, 68, 0.2);
}

/* Card Content Grid */
.draft-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
}

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

/* Post text column */
.post-text-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-hook-box {
    background: rgba(255, 51, 51, 0.04);
    border-left: 3px solid var(--accent-start);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
}

.post-hook-box label {
    font-size: 0.75rem;
    color: var(--accent-end);
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.3rem;
}

.post-hook-box p {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
}

.post-body-box label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.3rem;
}

.post-body-box p {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
}

.post-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.post-hashtags span {
    font-size: 0.8rem;
    color: var(--accent-end);
}

/* Media plan column */
.media-plan-col {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.media-section h4 {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
}

.media-section p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-primary);
}

/* Card Actions */
.draft-card-actions {
    display: flex;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.draft-card-actions .btn {
    width: auto;
    flex: 1;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-start);
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    transition: var(--transition);
    transform: translateY(0);
    opacity: 1;
}

.toast.hidden {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

/* ==========================================
   STORY SIMULATOR DESIGNS (TikTok & Instagram Style)
   ========================================== */
.story-preview-wrapper {
    position: relative;
    margin-top: 0.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 240px;
    aspect-ratio: 9/16;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    background: #000;
    user-select: none;
    -webkit-user-select: none;
}

.story-progress-bars {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 4px;
    z-index: 10;
}

.story-bar-item {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.15s ease;
}

.story-bar-item.active {
    background: #ff3333; /* Rote Branding-Farbe */
    box-shadow: 0 0 5px rgba(255, 51, 51, 0.5);
}

.story-overlay-card {
    position: absolute;
    left: 8%;
    right: 8%;
    padding: 10px 14px;
    border-radius: 8px;
    text-align: center;
    color: white;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(255, 51, 51, 0.75);
    pointer-events: none;
    line-height: 1.35;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 7;
}

/* Navigations-Zippflächen */
.story-nav-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 15;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    color: white;
    font-size: 1.5rem;
    background: linear-gradient(to right, rgba(0,0,0,0.2), transparent);
    width: 25%;
    transition: opacity 0.2s;
}

.story-nav-btn-right {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.2), transparent);
    width: 75%;
}

.story-preview-wrapper:hover .story-nav-btn {
    opacity: 0.3;
}

.story-nav-btn:hover {
    opacity: 0.8 !important;
}

/* TikTok & Instagram UI Mocks */
.story-header-mock {
    position: absolute;
    top: 22px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 8;
    pointer-events: none;
}

.story-avatar-mock {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: 1px solid #ff3333;
}

.story-username-mock {
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Echte interaktive Sticker */
.story-sticker-container {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 20%;
    top: 15%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9;
}

.story-sticker {
    pointer-events: auto;
    width: 90%;
    max-width: 210px;
    background: white;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    font-family: var(--font-body);
    color: #121212;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: rotate(-2deg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.story-sticker:hover {
    transform: rotate(0deg) scale(1.04);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* Poll Sticker */
.sticker-poll-question {
    font-weight: 700;
    font-size: 0.72rem;
    margin-bottom: 2px;
    color: #0f172a;
    line-height: 1.25;
}
.sticker-poll-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.sticker-poll-option {
    background: rgba(255, 51, 51, 0.05);
    border: 1.5px solid rgba(255, 51, 51, 0.3);
    border-radius: 8px;
    padding: 6px 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #ff3333;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sticker-poll-option:hover {
    background: #ff3333;
    color: white;
}
.sticker-poll-option.voted {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

/* QA Sticker */
.sticker-qa {
    padding: 0;
    overflow: hidden;
    border: 1.5px solid rgba(0,0,0,0.06);
}
.sticker-qa-header {
    background: linear-gradient(135deg, #ff3333, #ff8000);
    color: white;
    font-weight: 800;
    font-size: 0.65rem;
    padding: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.sticker-qa-question {
    font-weight: 700;
    font-size: 0.72rem;
    padding: 8px 8px 4px 8px;
    color: #0f172a;
    line-height: 1.2;
}
.sticker-qa-input {
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    margin: 0 10px 10px 10px;
    padding: 6px 8px;
    font-size: 0.62rem;
    color: #64748b;
    text-align: left;
    outline: none;
}

/* Slider Sticker */
.sticker-slider-question {
    font-weight: 700;
    font-size: 0.72rem;
    line-height: 1.2;
    color: #0f172a;
}
.sticker-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 5px 5px 5px;
}
.sticker-slider-input {
    flex: 1;
    accent-color: #ff3333;
    height: 4px;
    cursor: pointer;
}
.sticker-slider-emoji {
    font-size: 1.1rem;
    transition: transform 0.1s ease;
}

/* Countdown Sticker */
.sticker-countdown {
    background: #0d0d18;
    border: 1.5px solid #ff3333;
    color: white;
}
.sticker-countdown-title {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sticker-countdown-timer {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 2px;
}
.timer-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 4px 6px;
    min-width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.timer-box span {
    font-size: 0.85rem;
    font-weight: 800;
    color: #ff3333;
    font-family: var(--font-heading);
    line-height: 1;
}
.timer-box label {
    font-size: 0.45rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 2px;
}

/* Video Preview Player styling */
.video-preview-wrapper {
    position: relative;
    margin-top: 0.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 240px;
    aspect-ratio: 9/16;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    background: #000;
    transition: transform 0.25s ease;
}
.video-preview-wrapper:hover {
    transform: scale(1.02);
}
.video-preview-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}




