/* Dark theme overrides */

/* Body and content background */
body,
#content-wrapper {
    background-color: #1a1c24 !important;  /* Dark blue-gray */
    color: #e2e8f0 !important;
}

/* Card styles */
.card {
    background-color: #22242e !important;  /* Slightly lighter than body */
    border: 1px solid #2d3748 !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1) !important;
}

.card-header {
    background: linear-gradient(45deg, #2d3748, #2c3544) !important;
    border-bottom: 1px solid #3d4b61 !important;
    color: #e2e8f0 !important;
}

.card-body {
    background-color: #22242e !important;
}

/* Navbar styles */
.topbar {
    background: linear-gradient(45deg, #2d3748, #2c3544) !important;
}

.topbar .nav-item .nav-link {
    color: #e2e8f0 !important;
}

/* Sidebar styles */
.sidebar {
    background: linear-gradient(180deg, #1e2433 0%, #161923 100%) !important;
}

/* Table styles */
.table {
    color: #e2e8f0 !important;
}

.table td {
    border-color: #2d3748 !important;
}

/* Text colors */
.text-gray-800 {
    color: #e2e8f0 !important;
}

.text-gray-600 {
    color: #cbd5e0 !important;
}

/* Dropdown menus */
.dropdown-menu {
    background-color: #22242e !important;
    border: 1px solid #2d3748 !important;
}

/* Fix dropdown item visibility */
.dropdown-item {
    color: #e2e8f0 !important; /* Light text */
    background-color: #22242e !important; /* Match dropdown background */
}

.dropdown-item:hover, 
.dropdown-item:focus {
    background-color: #4a5568 !important; /* Slightly brighter for visibility */
    color: #e2e8f0 !important;
}

/* Fix dropdown menu input field visibility */
.dropdown-menu .form-control {
    background-color: #2d3748 !important;
    color: #e2e8f0 !important;
    border: 1px solid #3d4b61 !important;
}

.dropdown-menu .form-control::placeholder {
    color: #a0aec0 !important;
}

/* Input fields */
.form-control {
    background-color: #2d3748 !important;
    border: 1px solid #3d4b61 !important;
    color: #e2e8f0 !important;
}

.form-control:focus {
    background-color: #2d3748 !important;
    border-color: #4a5568 !important;
    color: #e2e8f0 !important;
}

/* Rclone Login Page Styles */
.rclone-container {
    max-width: 600px;
    padding: 5px;
    margin: 5px auto;
    text-align: center;
    background: #2A394C;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.rclone-container h1 {
    color: #e2e8f0;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.rclone-container h2 {
    color: #cbd5e0;
    font-size: 1.2rem;
    margin: 5px;
    text-align: center;
  
}

.cloud-icon {
    font-size: 5rem;
    color: #4e73df;
    margin: 10px;
    animation: float 3s ease-in-out infinite;
}

.connect-btn {
    display: inline-block;
     padding: 12px 29px;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(45deg, #4e73df, #224abe);
    border-radius: 8px;
    border: none;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
    text-decoration: none;
}

.connect-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(78, 115, 223, 0.4);
    color: #fff;
    text-decoration: none;
}

.connect-btn i {
    margin-right: 8px;
}

.auth-input {
    width: 100%;
    max-width: 400px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: #e2e8f0;
    background: #2d3748;
    border: 2px solid #3d4b61;
    border-radius: 10px;
    margin: 5px;
    transition: all 0.3s ease;
}

.auth-input:focus {
    outline: none;
    border-color: #4e73df;
    box-shadow: 0 0 0 2px rgba(78, 115, 223, 0.2);
}

.rclone-container p {
    color: #a0aec0;
    font-size: 0.9rem;
    
}

.submit-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(45deg, #1cc88a, #169a6b);
    border-radius: 10px;
    border: none;
    transition: all 0.3s ease;
    margin: 10px
  
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(28, 200, 138, 0.4);
}

.submit-btn i {
    margin-right: 8px;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .rclone-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .cloud-icon {
        font-size: 4rem;
    }

    .connect-btn, 
    .submit-btn {
        width: 100%;
        margin:5px;
    }

    .auth-input {
        font-size: 0.9rem;
        padding: 0.8rem 1.2rem;
    }

    .rclone-container h1 {
        font-size: 1.5rem;
    }

    .rclone-container h2 {
        font-size: 1rem;
        
    }
}

@media (max-width: 480px) {
    .rclone-container {
        margin: 0.5rem;
        padding: 1rem;
    }

    .cloud-icon {
        font-size: 5rem;
        margin: 1rem 0;
    }
}

/* Override white backgrounds */
.navbar.navbar-light.bg-white,
.topbar.navbar-light.bg-white,
nav.navbar.navbar-expand.navbar-light.bg-white,
.bg-white {
    background-color: #22242e !important;
    background: linear-gradient(45deg, #2d3748, #2c3544) !important;
}

/* Make sure dropdown menus stay dark */
.dropdown-menu.bg-white {
    background-color: #22242e !important;
}

/* For any other white backgrounds */
[class*="bg-white"] {
    background-color: #22242e !important;
}

/* Logo styles */
.img-profile {
    height: 40px;
    width: auto;
    margin: 5px;
    
}

/* For mobile devices */
@media (max-width: 768px) {
    .img-profile {
        height: 35px;
       
    }
}

/* Fix navbar profile image */
.navbar-nav .img-profile {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

/* Change "Upload Link" and "Upload Folder" text color */
#collapseLink .collapse-item {
    color: #e2e8f0 !important; /* White text */
}

/* Change Admin dropdown text color */
#collapseTwo .collapse-item {
    color: #e2e8f0 !important; /* White text */
}

/* Ensure all sidebar dropdown text is white */
.sidebar .nav-item .nav-link,
.sidebar .collapse-item {
    color: #e2e8f0 !important;
}

/* Hover effect for better visibility */
.sidebar .collapse-item:hover,
.sidebar .collapse-item:focus {
    background-color: #4a5568 !important; /* Dark background */
    color: #e2e8f0 !important;
}

/* Ensure Admin menu header is also white */
#collapseTwo .collapse-header {
    color: #e2e8f0 !important;
}

/* Ensure Upload Menu header is also white */
#collapseLink .collapse-header {
    color: #e2e8f0 !important;
}

.modal-content {
  background-color: #2d3748;
}

/* Button Container */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items:center;
}

/* Button Styling */
.custom-btn {
    font-size: 18px;
    font-weight: bold;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.3s;
    width: 220px;
    justify-content: center;
}

/* Login Button */
.custom-login {
    background-color: #e74c3c;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.4);
}
.custom-login:hover {
    background-color: #c0392b;
}

/* Telegram Button */
.custom-telegram {
    background-color: #17a2b8;
    box-shadow: 0 4px 10px rgba(23, 162, 184, 0.4);
}
.custom-telegram:hover {
    background-color: #138496;
}


        
 .how-to-login {
            max-width: 600px;
            margin: 50px auto;
            background: #2A394C;
            padding: 20px;
            border-radius: 8px;
            text-align: left;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .how-to-login h2 {
            color: #ffcc00;
            text-align: center;
            font-weight: bold;
        }
        .how-to-login ul {
            padding-left: 20px;
        }
        .how-to-login li {
            margin-bottom: 10px;
        }
        .video-container {
            text-align: center;
            margin-top: 20px;
        }
        .video-container iframe {
            width: 100%;
            max-width: 560px;
            height: 315px;
            border-radius: 8px;
        }
       
      .how-to-login b {
       color: #1cc88a;
      }
      .how-to-login i {
        color: #ff9539;
      }