/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #94a3b8;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --background-color: #0f172a;
    --surface-color: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    min-height: 100vh;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.login-form {
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--surface-color);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(99 102 241 / 0.1);
}

.login-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-full {
    width: 100%;
}

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

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-error {
    background: #1f2937;
    color: #fca5a5;
    border: 1px solid #7f1d1d;
}

.alert-success {
    background: #1f2937;
    color: #86efac;
    border: 1px solid #166534;
}

.alert-warning {
    background: #1f2937;
    color: #fbbf24;
    border: 1px solid #d97706;
}

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

/* Header */
.header {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

.page-header {
    margin-bottom: 2rem;
}

.page-title-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.video-count {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

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

/* Cards */
.card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-color);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-body {
    padding: 1.5rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    overflow: visible;
    position: relative;
}

.video-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: visible;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--surface-hover);
    z-index: 2;
}

.video-thumbnail {
    width: 100%;
    height: 150px;
    background: var(--surface-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 2.5rem;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
    opacity: 0;
}

.video-card:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 0.75rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.video-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.video-actions {
    display: flex;
    gap: 0.5rem;
}

/* Upload Form */
#uploadForm .form-group {
    margin-bottom: 1.5rem;
}

#uploadForm .form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

#uploadForm .form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--surface-color);
    color: var(--text-primary);
}

#uploadForm .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(99 102 241 / 0.1);
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--text-secondary);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    background: var(--surface-color);
    transition: all 0.2s ease;
    cursor: pointer;
    color: var(--text-primary);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: var(--surface-hover);
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: var(--surface-hover);
}

.upload-icon {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.upload-subtext {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.upload-progress {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--surface-hover);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-text {
    font-weight: 500;
    color: var(--text-primary);
}

.progress-percentage {
    font-weight: 600;
    color: var(--primary-color);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 6px;
}

.progress-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.file-size, .upload-speed {
    font-family: 'Courier New', monospace;
}

/* File Input */
.file-input {
    display: none;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .user-menu {
        width: 100%;
        justify-content: space-between;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 1rem 0;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modern JW Player Styles */
.jwplayer {
    font-family: inherit;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.jwplayer .jw-media {
    border-radius: var(--radius-lg);
}

/* JW Player Big Play Button */
.jwplayer .jw-display {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    width: 90px;
    height: 90px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(10px);
}

.jwplayer .jw-display:hover {
    background: linear-gradient(135deg, var(--primary-dark), #3730a3);
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
}

.jwplayer .jw-icon-play {
    color: white;
    font-size: 2.5rem;
}

/* JW Player Control Bar */
.jwplayer .jw-controls {
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.7));
    height: 70px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* JW Player Control Bar Buttons */
.jwplayer .jw-button {
    color: rgba(255,255,255,0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    padding: 8px;
    margin: 0 2px;
}

.jwplayer .jw-button:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.jwplayer .jw-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5);
}

/* Play/Pause Button */
.video-js .vjs-play-control {
    order: 1;
    font-size: 1.2rem;
}

.video-js .vjs-play-control:before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f04b';
}

.video-js.vjs-playing .vjs-play-control:before {
    content: '\f04c';
}

/* Time Display */
.video-js .vjs-time-control {
    order: 2;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    margin: 0 1rem;
}

/* Progress Bar Container */
.video-js .vjs-progress-control {
    order: 3;
    flex: 1;
    height: 8px;
    margin: 0 1rem;
    position: relative;
}

.video-js .vjs-progress-holder {
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-js .vjs-progress-holder:hover {
    height: 12px;
    margin-top: -2px;
}

/* JW Player Progress Bar */
.jwplayer .jw-progress {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    height: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.jwplayer .jw-progress:hover {
    height: 12px;
    margin-top: -2px;
}

.jwplayer .jw-buffer {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    height: 100%;
}

.jwplayer .jw-rail {
    background: linear-gradient(90deg, var(--primary-color), #8b5cf6);
    border-radius: 4px;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.jwplayer .jw-knob {
    background: white;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    opacity: 0;
    transition: all 0.3s ease;
}

.jwplayer .jw-progress:hover .jw-knob {
    opacity: 1;
}

/* JW Player Volume Control */
.jwplayer .jw-slider-volume {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    height: 6px;
    width: 80px;
}

.jwplayer .jw-rail-volume {
    background: linear-gradient(90deg, var(--primary-color), #8b5cf6);
    border-radius: 4px;
    height: 100%;
}

.jwplayer .jw-knob-volume {
    background: white;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Fullscreen Button */
.video-js .vjs-fullscreen-control {
    order: 5;
    font-size: 1.1rem;
}

.video-js .vjs-fullscreen-control:before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f065';
}

.video-js.vjs-fullscreen .vjs-fullscreen-control:before {
    content: '\f066';
}

/* Settings Menu */
.video-js .vjs-menu-button-popup .vjs-menu {
    background: rgba(0,0,0,0.9);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.video-js .vjs-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.video-js .vjs-menu li:last-child {
    border-bottom: none;
}

.video-js .vjs-menu li.vjs-selected {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
}

/* Loading Spinner */
.video-js .vjs-loading-spinner {
    border-color: var(--primary-color) transparent var(--primary-color) transparent;
    border-width: 3px;
}

/* Error Display */
.video-js .vjs-error-display {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem;
}

/* Live Display */
.video-js .vjs-live-control {
    order: 6;
    color: #ef4444;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Picture-in-Picture */
.video-js .vjs-picture-in-picture-control {
    order: 7;
    font-size: 1.1rem;
}

.video-js .vjs-picture-in-picture-control:before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f422';
}

/* Video Card Hover Effects */

.video-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    background: var(--surface-hover);
}

/* Embed Button Styles */
.btn-secondary {
    background: var(--secondary-color);
    color: white;
    border: none;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #475569;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Notification Styles */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    animation: slideIn 0.3s ease;
    z-index: 100000;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Video Actions Responsive */
@media (max-width: 480px) {
    .video-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .video-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* JW Player Responsive */
@media (max-width: 768px) {
    .jwplayer .jw-display {
        width: 60px;
        height: 60px;
    }
    
    .jwplayer .jw-icon-play {
        font-size: 1.5rem;
    }
    
    .jwplayer .jw-controls {
        height: 50px;
        padding: 0 0.5rem;
    }
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
    z-index: 1001;
}

.dropdown-toggle {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    position: relative;
    overflow: hidden;
}

.dropdown-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.dropdown-toggle:hover {
    background: var(--surface-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.dropdown-toggle:hover::before {
    opacity: 0.1;
}

.dropdown-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    min-width: 200px;
    width: max-content;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    display: none;
    overflow: hidden;
}

/* Dropdown positioned above */
.dropdown-menu.positioned-above {
    top: auto;
    bottom: calc(100% + 8px);
    transform: translateY(15px) scale(0.95);
}

.dropdown-menu.positioned-above.show {
    transform: translateY(0) scale(1);
}

.dropdown-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
    display: block !important;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    position: relative;
    font-weight: 500;
    font-size: 0.9rem;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0.12));
    color: var(--primary-color);
    transform: translateX(4px);
    padding-left: 1.5rem;
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

.dropdown-item i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-item:hover i {
    transform: scale(1.1);
}

.dropdown-item.danger {
    color: var(--error-color);
}

.dropdown-item.danger:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.12));
    color: var(--error-color);
}

.dropdown-item.danger::before {
    background: var(--error-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

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

.modal-content {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
    border: 1px solid var(--border-color);
}

.modal-content.large {
    max-width: 800px;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--background-color);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.modal-footer .btn {
    min-width: 100px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.modal-footer .btn-secondary {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.modal-footer .btn-secondary:hover {
    background: var(--text-secondary);
    color: var(--surface-color);
    border-color: var(--text-secondary);
}

.modal-footer .btn-primary {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: white;
}

.modal-footer .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Modal Form Styles */
.modal .form-group {
    margin-bottom: 1.5rem;
}

.modal .form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.modal .form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--surface-color);
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(99 102 241 / 0.1);
}

/* Thumbnail Selection Styles */
.current-thumbnail {
    margin-top: 0.5rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
}

.current-thumbnail img {
    max-width: 200px;
    max-height: 120px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.current-thumbnail p {
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

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

.video-player {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #000;
}

.video-player video {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.thumbnail-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.time-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Video Actions Update */
.video-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .dropdown-menu {
        right: auto;
        left: 0;
        min-width: 200px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 2px 16px rgba(0, 0, 0, 0.15);
    }
    
    .dropdown-item {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .dropdown-item:hover {
        transform: translateX(2px);
        padding-left: 1.25rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-content.large {
        max-width: 95%;
    }
}

/* Dark mode enhancements for dropdown */
@media (prefers-color-scheme: dark) {
    .dropdown-menu {
        background: rgba(30, 30, 30, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
    }
    
    .dropdown-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .dropdown-item:hover {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.2));
    }
    
    .dropdown-item.danger:hover {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.2));
    }
}

/* Profile Page Styles */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.profile-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.profile-card,
.password-card,
.stats-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-card:hover,
.password-card:hover,
.stats-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(99, 102, 241, 0.1));
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-body {
    padding: 2rem;
}

.profile-form,
.password-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.form-input {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--background-color);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: var(--surface-color);
}

.form-input:invalid {
    border-color: var(--error-color);
}

.form-help {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: right;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(99, 102, 241, 0.1));
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Responsive Design for Profile */
@media (max-width: 768px) {
    .profile-container {
        gap: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

.pagination button,
.pagination-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-block;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--surface-hover);
}

.pagination button:hover:not(:disabled),
.pagination-btn:hover:not(.disabled) {
    background: var(--surface-hover);
    border-color: var(--primary-color);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0 1rem;
}

.pagination-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-select:hover {
    border-color: var(--primary-color);
}

.pagination-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(99 102 241 / 0.1);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Reklam Yönetimi Stilleri */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    background: var(--surface-color);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 0.5rem;
    gap: 0.25rem;
}

.tab-button {
    background: none;
    border: none;
    padding: 0.875rem 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.tab-button:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-button.active {
    color: white;
    background: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.ads-management {
    padding: 1.5rem 0;
}

.ads-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--surface-color), rgba(99, 102, 241, 0.05));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.ads-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ads-header h4::before {
    content: '🎯';
    font-size: 1.2em;
}

.video-ads-list {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: visible;
    padding: 1rem;
    margin-top: 1rem;
    position: relative;
}

.video-ads-list::before {
    content: '';
    display: block;
    height: 1rem;
    width: 100%;
}

.video-ads-list::after {
    content: '';
    display: block;
    height: 1rem;
    width: 100%;
}

.video-ads-list::-webkit-scrollbar {
    width: 6px;
}

.video-ads-list::-webkit-scrollbar-track {
    background: var(--surface-color);
    border-radius: 3px;
}

.video-ads-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.video-ads-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.video-ad-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.video-ad-item:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.02);
}

.video-ad-info {
    flex: 1;
    padding-right: 1rem;
}

.video-ad-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.video-ad-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.video-ad-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.video-ad-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ad-preview {
    background: linear-gradient(135deg, var(--surface-color), rgba(99, 102, 241, 0.05));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.ad-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.ad-preview h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ad-preview h4::before {
    content: '👁️';
    font-size: 1.1em;
}

.ad-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.ad-details p {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-color);
}

.ad-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-type-pre-roll { 
    background: rgba(59, 130, 246, 0.2); 
    color: #60a5fa; 
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.ad-type-mid-roll { 
    background: rgba(168, 85, 247, 0.2); 
    color: #a78bfa; 
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.ad-type-post-roll { 
    background: rgba(34, 197, 94, 0.2); 
    color: #4ade80; 
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.ad-type-overlay { 
    background: rgba(245, 158, 11, 0.2); 
    color: #fbbf24; 
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Modern Modal Stilleri */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.modal-content.large {
    width: 800px;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--surface-color), rgba(99, 102, 241, 0.05));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Modern Form Elementleri */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-color);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--primary-color);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Modern Select Stilleri */
.form-group {
    position: relative;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.form-group select:focus {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Modern Button Stilleri */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification Sistemi */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.notification-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.notification-success .notification-content::before {
    background: #10b981;
}

.notification-error .notification-content::before {
    background: #ef4444;
}

.notification-warning .notification-content::before {
    background: #f59e0b;
}

.notification-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Confirmation Dialog */
.confirmation-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirmation-dialog.show {
    opacity: 1;
}

.confirmation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.confirmation-content {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 100%;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.confirmation-dialog.show .confirmation-content {
    transform: scale(1);
}

.confirmation-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.confirmation-header h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.confirmation-body {
    padding: 1.5rem;
}

.confirmation-body p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.confirmation-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.confirmation-footer .btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
}

.confirmation-footer .btn-secondary {
    background: var(--border-color);
    color: var(--text-secondary);
}

.confirmation-footer .btn-secondary:hover {
    background: #475569;
    color: var(--text-primary);
}

.confirmation-footer .btn-danger {
    background: var(--error-color);
    color: white;
}

.confirmation-footer .btn-danger:hover {
    background: #dc2626;
}

/* Embed Modal Styles */
.input-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.input-group input,
.input-group textarea {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    white-space: nowrap;
}


/* Media Upload Section */
.media-upload-section {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.upload-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.upload-tab {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.upload-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.upload-tab.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 2px solid var(--primary-color);
}

.upload-tab-content {
    display: none;
}

.upload-tab-content.active {
    display: block;
}

.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.02);
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.file-upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.upload-subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.uploaded-file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.file-info i {
    font-size: 1.2rem;
    color: #4ade80;
}

.file-name {
    font-weight: 500;
}

.file-size {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
    }
    
    .tab-button {
        border-bottom: none;
        border-right: 2px solid transparent;
        text-align: left;
    }
    
    .tab-button.active {
        border-bottom: none;
        border-right-color: var(--primary-color);
    }
    
    .ads-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .video-ad-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .video-ad-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .drag-handle {
        font-size: 24px;
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }
    
    .video-ad-item .video-ad-info {
        margin-left: 70px;
    }
}

/* Drag & Drop Styles */
.video-ad-item {
    cursor: move;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.video-ad-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.video-ad-item.dragging {
    opacity: 0.9;
    transform: scale(1.02);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-color);
    background-color: rgba(99, 102, 241, 0.1);
    transition: none;
}

.video-ad-item.drag-over {
    border-top: 3px solid var(--primary-color);
    background-color: rgba(99, 102, 241, 0.1);
}

.drag-handle {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    cursor: grab;
    font-size: 20px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    background-color: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--border-color);
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drag-handle:hover {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.drag-handle:active {
    cursor: grabbing;
}

.video-ad-item .video-ad-info {
    margin-left: 60px;
}

.sortable-placeholder {
    height: 80px;
    background-color: rgba(99, 102, 241, 0.1);
    border: 2px dashed var(--primary-color);
    border-radius: var(--radius-md);
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 500;
}

.sortable-placeholder::before {
    content: "Reklamı buraya bırakın";
}
