/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 50%, #fce4ec 100%);
    min-height: 100vh;
    color: #4a1942;
    line-height: 1.6;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

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

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(233, 30, 99, 0.15);
    overflow: hidden;
}

.login-header {
    text-align: center;
    padding: 40px 30px 30px;
    background: linear-gradient(135deg, #ec407a 0%, #d81b60 100%);
    color: white;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.logo-circle svg {
    color: white;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 16px;
    opacity: 0.95;
}

.login-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a1942;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #f8bbd0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: #ec407a;
    box-shadow: 0 0 0 3px rgba(236, 64, 122, 0.1);
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid #c62828;
}

.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.message.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #ec407a 0%, #d81b60 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(236, 64, 122, 0.3);
}

.btn-secondary {
    background: #f8bbd0;
    color: #880e4f;
}

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

.btn-outline {
    background: white;
    color: #ec407a;
    border: 2px solid #ec407a;
}

.btn-outline:hover {
    background: #fce4ec;
}

.btn-danger {
    background: #f44336;
    color: white;
    padding: 10px 12px;
}

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

.btn-large {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
}

.login-info {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: #666;
}

.credentials {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    margin-top: 4px;
    color: #ec407a;
}

/* Dashboard */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.header h1 {
    font-size: 32px;
    color: #880e4f;
    margin-bottom: 8px;
}

.subtitle {
    color: #666;
    font-size: 16px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.08);
}

.stat-label {
    font-size: 13px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 42px;
    font-weight: 700;
    color: #ec407a;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-value-small {
    font-size: 20px;
    font-weight: 700;
    color: #ec407a;
    margin-bottom: 4px;
    word-break: break-word;
}

.stat-info {
    font-size: 13px;
    color: #999;
}

/* Card */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header {
    padding: 24px;
    border-bottom: 1px solid #fce4ec;
}

.card-header h2 {
    font-size: 20px;
    color: #880e4f;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h2 svg {
    color: #ec407a;
}

.card-description {
    color: #666;
    font-size: 14px;
}

/* Upload Form */
.upload-form {
    padding: 24px;
}

.file-info {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

.upload-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #fce4ec;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ec407a 0%, #d81b60 100%);
    transition: width 0.3s;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

/* Videos List */
.videos-list {
    padding: 24px;
}

.video-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 2px solid #fce4ec;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.video-item:hover {
    background: #fce4ec;
    border-color: #f8bbd0;
}

.video-info h3 {
    font-size: 16px;
    color: #4a1942;
    margin-bottom: 4px;
}

.video-info p {
    font-size: 13px;
    color: #999;
}

.video-actions {
    display: flex;
    gap: 10px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state svg {
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 8px;
}

.empty-subtitle {
    font-size: 14px;
    color: #bbb;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .video-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .video-actions {
        width: 100%;
    }
    
    .video-actions .btn {
        flex: 1;
    }
    
    .btn-outline {
        flex: 2;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

