/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f0f0f;
    color: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #fff;
}

/* Navbar */
.navbar {
    background: #1a1a1a;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo {
    font-size: 24px;
    font-weight: bold;
    color: #ff0000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo i {
    font-size: 28px;
}

.nav-search {
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
}

.nav-search form {
    display: flex;
    background: #2a2a2a;
    border-radius: 25px;
    overflow: hidden;
}

.nav-search input {
    flex: 1;
    padding: 10px 18px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
}

.nav-search input::placeholder {
    color: #888;
}

.nav-search button {
    background: #333;
    border: none;
    padding: 10px 20px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.nav-search button:hover {
    background: #444;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:hover {
    background: #2a2a2a;
}

.upload-btn {
    background: #ff0000;
    color: #fff !important;
    font-weight: bold;
}

.upload-btn:hover {
    background: #cc0000 !important;
}

.signup-btn {
    background: #1a73e8;
    color: #fff !important;
}

.signup-btn:hover {
    background: #1557b0 !important;
}

/* Main Container */
.main-container {
    display: flex;
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
    gap: 20px;
}

/* Sidebar */
.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-section {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
}

.sidebar-section h3 {
    margin-bottom: 15px;
    color: #aaa;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section ul li {
    margin-bottom: 8px;
}

.sidebar-section ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.3s;
    color: #ccc;
}

.sidebar-section ul li a:hover {
    background: #2a2a2a;
    color: #fff;
}

.sidebar-section ul li a i {
    width: 20px;
    color: #ff0000;
}

/* Main Content */
.main-content {
    flex: 1;
}

/* Trending Section */
.trending-section h1 {
    margin-bottom: 20px;
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trending-section h1 i {
    color: #ff0000;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.video-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid #333;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #2a2a2a;
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff0000;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.verified-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.verified-badge i {
    color: #1a73e8;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.channel-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.channel-info span {
    font-size: 14px;
    color: #aaa;
}

.blue-tick {
    color: #1a73e8;
    font-size: 14px;
}

.video-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #888;
}

.video-stats i {
    margin-right: 4px;
}

/* Auth Pages */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.auth-card {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid #333;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 28px;
    color: #ff0000;
    margin-bottom: 10px;
}

.auth-header h1 i {
    margin-right: 10px;
}

.auth-header h2 {
    font-size: 22px;
    margin-bottom: 5px;
}

.auth-header p {
    color: #888;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    color: #aaa;
    font-size: 14px;
}

.auth-form label i {
    margin-right: 8px;
}

.auth-form input {
    width: 100%;
    padding: 12px 16px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: #ff0000;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #ff0000;
    color: #fff;
}

.btn-primary:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-success {
    background: #28a745;
    color: #fff;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-info {
    background: #17a2b8;
    color: #fff;
}

.btn-info:hover {
    background: #138496;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: #888;
}

.auth-footer a {
    color: #1a73e8;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.forgot-link {
    display: block;
    margin-top: 10px;
    font-size: 14px;
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #2a0000;
    border: 1px solid #ff0000;
    color: #ff4444;
}

.alert-success {
    background: #002a00;
    border: 1px solid #00ff00;
    color: #44ff44;
}

.alert-info {
    background: #001a2a;
    border: 1px solid #0088ff;
    color: #44aaff;
}

/* Dashboard */
.dashboard-container {
    display: flex;
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
    gap: 20px;
}

.dashboard-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.user-profile {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.user-profile img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ff0000;
    margin-bottom: 10px;
}

.user-profile h3 {
    margin-bottom: 5px;
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dashboard-nav a {
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
}

.dashboard-nav a:hover {
    background: #2a2a2a;
    color: #fff;
}

.dashboard-nav a.active {
    background: #ff0000;
    color: #fff;
}

.dashboard-nav a i {
    width: 20px;
}

.dashboard-content {
    flex: 1;
}

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-header p {
    color: #888;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-card i {
    font-size: 32px;
    color: #ff0000;
}

.stat-card .stat-info h3 {
    font-size: 24px;
    font-weight: bold;
}

.stat-card .stat-info p {
    color: #888;
    font-size: 14px;
}

/* Dashboard Sections */
.dashboard-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.section {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
}

.section h2 {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.empty-state {
    color: #888;
    text-align: center;
    padding: 30px 0;
}

.empty-state a {
    color: #ff0000;
}

/* Video List */
.video-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.video-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #2a2a2a;
    align-items: center;
}

.video-item img {
    width: 120px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.video-item-info {
    flex: 1;
}

.video-item-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.video-item-info .status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    margin-right: 10px;
}

.status.pending {
    background: #ff8800;
    color: #000;
}

.status.approved {
    background: #00ff00;
    color: #000;
}

.status.rejected {
    background: #ff0000;
    color: #fff;
}

/* Earnings Summary */
.earnings-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.earning-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #333;
}

.earning-item .amount {
    font-weight: bold;
    color: #00ff00;
}

/* Upload Form */
.upload-form .form-group {
    margin-bottom: 20px;
}

.upload-form label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
}

.upload-form input[type="text"],
.upload-form textarea,
.upload-form select {
    width: 100%;
    padding: 12px 16px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
}

.upload-form textarea {
    resize: vertical;
    min-height: 100px;
}

.upload-drop-zone {
    border: 2px dashed #333;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: border-color 0.3s;
    position: relative;
    cursor: pointer;
}

.upload-drop-zone:hover {
    border-color: #ff0000;
}

.upload-drop-zone i {
    font-size: 48px;
    color: #ff0000;
    margin-bottom: 10px;
}

.upload-drop-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-drop-zone.small {
    padding: 20px;
}

.upload-drop-zone.small i {
    font-size: 24px;
}

.upload-form small {
    display: block;
    margin-top: 8px;
    color: #888;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #2a2a2a;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.checkbox-label:hover {
    background: #333;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 5px;
}

/* Earnings Summary Grid */
.earnings-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
    text-align: center;
}

.summary-card h3 {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.summary-card .amount {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.summary-card .label {
    color: #888;
    font-size: 12px;
}

.summary-card.pending .amount {
    color: #ff8800;
}

.summary-card.approved .amount {
    color: #00ff00;
}

.summary-card.paid .amount {
    color: #1a73e8;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    text-align: left;
    padding: 12px 15px;
    background: #2a2a2a;
    color: #aaa;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #333;
}

.data-table tr:hover {
    background: #1a1a1a;
}

.video-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-mini img {
    width: 40px;
    height: 25px;
    object-fit: cover;
    border-radius: 4px;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.status-badge.pending {
    background: #ff8800;
    color: #000;
}

.status-badge.approved {
    background: #00ff00;
    color: #000;
}

.status-badge.completed,
.status-badge.paid {
    background: #1a73e8;
    color: #fff;
}

.status-badge.rejected {
    background: #ff0000;
    color: #fff;
}

.status-badge.verified,
.status-badge.approved {
    background: #00ff00;
    color: #000;
}

.status-badge.unverified,
.status-badge.none {
    background: #888;
    color: #fff;
}

/* Withdraw Form */
.withdraw-form-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.withdraw-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #333;
}

.withdraw-card h2 {
    margin-bottom: 20px;
}

.withdraw-form .form-group {
    margin-bottom: 20px;
}

.withdraw-form label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
}

.withdraw-form input,
.withdraw-form select,
.withdraw-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
}

.withdraw-form textarea {
    resize: vertical;
    min-height: 80px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 18px;
    font-weight: bold;
}

.input-with-icon input {
    padding-left: 35px;
}

.withdraw-form small {
    display: block;
    margin-top: 5px;
    color: #888;
}

.withdraw-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
}

.info-card h3 {
    margin-bottom: 15px;
    color: #ff0000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card ul {
    list-style: none;
}

.info-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #333;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card ul li::before {
    content: "•";
    color: #ff0000;
    font-weight: bold;
}

/* KYC Page */
.kyc-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.kyc-status-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #333;
}

.kyc-status-card h2 {
    margin-bottom: 20px;
}

.status-display {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 8px;
    margin-bottom: 20px;
}

.status-display i {
    font-size: 32px;
}

.status-display .status-text {
    font-size: 18px;
    font-weight: bold;
}

.status-text.pending {
    color: #ff8800;
}

.status-text.approved {
    color: #00ff00;
}

.status-text.rejected {
    color: #ff0000;
}

.kyc-description {
    color: #888;
    margin-bottom: 20px;
}

.kyc-benefits {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #333;
}

.kyc-benefits h3 {
    margin-bottom: 15px;
    color: #ff0000;
}

.kyc-benefits ul {
    list-style: none;
}

.kyc-benefits ul li {
    padding: 10px 0;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
}

.kyc-benefits ul li i {
    color: #00ff00;
}

/* Watch Page */
.watch-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.video-player {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
}

.video-player video {
    width: 100%;
    max-height: 500px;
    background: #000;
}

.video-details {
    padding: 20px;
}

.video-details h1 {
    font-size: 22px;
    margin-bottom: 15px;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.channel-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.channel-avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.channel-name {
    font-weight: bold;
    font-size: 16px;
}

.video-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.video-actions .views {
    color: #888;
}

.video-actions button {
    background: #2a2a2a;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-actions button:hover {
    background: #333;
}

.video-description {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.video-description p {
    margin-bottom: 10px;
}

.upload-time {
    color: #888;
    font-size: 13px;
}

/* Related Videos */
.video-sidebar h3 {
    margin-bottom: 20px;
}

.related-video {
    margin-bottom: 15px;
}

.related-video a {
    display: flex;
    gap: 10px;
}

.related-thumbnail {
    width: 160px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.related-thumbnail img {
    width: 100%;
    height: 90px;
    object-fit: cover;
}

.related-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-info .channel {
    display: block;
    color: #888;
    font-size: 13px;
}

.related-info .views {
    color: #888;
    font-size: 12px;
}

/* Footer */
.footer {
    background: #1a1a1a;
    border-top: 1px solid #333;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer p {
    color: #888;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #888;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }
    
    .watch-container {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
    
    .withdraw-form-container {
        grid-template-columns: 1fr;
    }
    
    .kyc-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-search {
        order: 3;
        flex: 1 1 100%;
        margin: 0;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .dashboard-container {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        position: static;
    }
    
    .dashboard-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .dashboard-nav a {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .earnings-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .video-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .related-video a {
        flex-direction: column;
    }
    
    .related-thumbnail {
        width: 100%;
    }
    
    .related-thumbnail img {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        padding: 20px;
    }
    
    .nav-links a {
        padding: 6px 10px;
        font-size: 12px;
    }
}