@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a1a;
    color: #ffffff;
    height: 100vh;
    overflow: hidden;
}

.containner {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: #242424;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #333;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.logo::before {
    content: "✈";
    font-size: 20px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #ccc;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.2s;
}

.nav-item:hover {
    background: #333;
    color: #fff;
}

.nav-item.active {
    background: #3b82f6;
    color: #fff;
}

.nav-item::before {
    width: 20px;
    text-align: center;
}

.nav-item.schedule::before { content: "📅"; }
.nav-item.generate::before { content: "✨"; }
.nav-item.history::before { content: "🕒"; }
.nav-item.settings::before { content: "⚙️"; }

.generate-btn {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    margin: 0 20px;
    border-radius: 8px;
    font-weight: 600;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #333;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.user-info h4 {
    font-size: 14px;
    font-weight: 600;
}

.user-info p {
    font-size: 12px;
    color: #888;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-header {
    padding: 20px 30px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header h1 {
    font-size: 24px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary {
    background: #333;
    color: #fff;
    border: 1px solid #444;
}

.btn-primary {
    background: #3b82f6;
    color: #fff;
}

.btn:hover {
    opacity: 0.9;
}

/* Content Area */
.content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.form-section {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #888;
}

.breadcrumb span:not(:last-child)::after {
    content: ">";
    margin-left: 8px;
}

.channel-selection {
    margin-bottom: 30px;
}

.channel-tabs {
    display: flex;
    gap: 1px;
    background: #333;
    border-radius: 8px;
    padding: 4px;
}

.channel-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: #ccc;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.channel-tab.active {
    background: #3b82f6;
    color: #fff;
}

.template-section {
    margin-bottom: 30px;
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.template-card {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
}

.template-card h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.template-card p {
    font-size: 14px;
    color: #888;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #ccc;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.settings-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.setting-item {
    flex: 1;
    text-align: center;
}

.setting-item h4 {
    font-size: 14px;
    margin-bottom: 8px;
    color: #ccc;
}

.setting-toggle {
    padding: 8px 16px;
    background: #3b82f6;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* Preview Section */
.preview-section {
    width: 400px;
    background: #1f1f1f;
    border-left: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.preview-header {
    padding: 20px;
    border-bottom: 1px solid #333;
}

.preview-tabs {
    display: flex;
    background: #2a2a2a;
    border-radius: 6px;
    padding: 2px;
}

.preview-tab {
    flex: 1;
    padding: 8px;
    background: transparent;
    border: none;
    color: #ccc;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

.preview-tab.active {
    background: #3b82f6;
    color: #fff;
}

.preview-content {
    flex: 1;
    padding: 20px;
}

.preview-message {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.preview-message h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.preview-message p {
    color: #ccc;
    line-height: 1.5;
}

.schedule-details {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.schedule-details h3 {
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.detail-label {
    color: #888;
    font-size: 14px;
}

.detail-value {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.audience-section {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
}

.audience-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 12px;
}

.audience-tab {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #444;
    border-radius: 4px;
    color: #ccc;
    cursor: pointer;
}

.audience-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.audience-item:last-child {
    border-bottom: none;
}

.audience-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
}

.preview-footer {
    padding: 20px;
    border-top: 1px solid #333;
    display: flex;
    gap: 10px;
}

.hint-text {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}
.btn:active {
    transform: translateY(1px);
}

.channel-tab:hover {
    background: rgba(59, 130, 246, 0.1);
}

.preview-tab:hover {
    background: rgba(59, 130, 246, 0.1);
}

.template-card:hover {
    background: #333;
    border-color: #555;
}

.setting-toggle:hover {
    background: #2563eb;
}

.setting-toggle:active {
    transform: scale(0.98);
}

.audience-tab:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.error {
    background: #ef4444;
}

.fade-out {
    opacity: 0.5;
    pointer-events: none;
}

.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}