/* YouTube-themed CSS for NeedyTool */

:root {
    --youtube-red: #ff0000;
    --youtube-dark-red: #cc0000;
    --youtube-light-red: #ff4444;
    --youtube-dark: #282828;
    --youtube-darker: #1a1a1a;
    --youtube-gray: #f9f9f9;
    --youtube-text: #0f0f0f;
    --youtube-text-light: #606060;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--youtube-gray);
    color: var(--youtube-text);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--youtube-red) 0%, var(--youtube-dark-red) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--youtube-red);
}

/* Cards */
.card {
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: none;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-danger {
    background-color: var(--youtube-red);
    border-color: var(--youtube-red);
}

.btn-danger:hover {
    background-color: var(--youtube-dark-red);
    border-color: var(--youtube-dark-red);
    transform: translateY(-2px);
}

.btn-outline-danger {
    color: var(--youtube-red);
    border-color: var(--youtube-red);
}

.btn-outline-danger:hover {
    background-color: var(--youtube-red);
    border-color: var(--youtube-red);
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--youtube-red);
    box-shadow: 0 0 0 0.2rem rgba(255, 0, 0, 0.25);
}

.input-group-text {
    border-radius: 8px 0 0 8px;
    border: 2px solid #e9ecef;
    border-right: none;
    background-color: #f8f9fa;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-success {
    background-color: #d1edff;
    color: #0c5460;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

/* Progress Bars */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 4px;
}

/* Stats Cards */
.card.bg-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

.card.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
}

.card.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
}

.card.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
}

/* Video Cards */
.video-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: scale(1.02);
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Plan Cards */
.plan-card {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.plan-card.featured {
    border: 3px solid var(--youtube-red);
    position: relative;
}

.plan-card.featured::before {
    content: "POPULAR";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--youtube-red);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--youtube-red);
    color: white;
    border: none;
    font-weight: 500;
}

.table tbody tr {
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Badges */
.badge {
    border-radius: 6px;
    font-weight: 500;
}

.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
}

.badge.bg-danger {
    background-color: var(--youtube-red) !important;
}

/* Footer */
footer {
    background-color: var(--youtube-dark) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--youtube-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--youtube-dark-red);
}

/* Utility Classes */
.text-youtube-red {
    color: var(--youtube-red) !important;
}

.bg-youtube-red {
    background-color: var(--youtube-red) !important;
}

.border-youtube-red {
    border-color: var(--youtube-red) !important;
}

.shadow-youtube {
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2) !important;
}

/* Video Player Styles */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Earnings Display */
.earnings-display {
    font-size: 2rem;
    font-weight: bold;
    color: var(--youtube-red);
}

/* Status Indicators */
.status-pending {
    color: #ffc107;
}

.status-approved {
    color: #28a745;
}

.status-rejected {
    color: #dc3545;
}

/* Referral Code */
.referral-code {
    font-family: 'Courier New', monospace;
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}
