/* ========== DARK THEME VARIABLES ========== */
:root {
    --bg-dark: #121212;
    --bg-darker: #0a0a0a;
    --card-dark: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-purple: #7f16ff;
    --accent-blue: #03dac6;
    --accent-red: #cf6679;
	--accent-dark: #0a0a0a;
    --shadow-dark: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* ========== BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
  color: #0077cc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}


a:active {
  color: #003d66;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========== ADMIN LAYOUT ========== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-darker);
}

.admin-sidebar {
    width: 280px;
    background-color: #0a0a0a;
    padding: 1.5rem;
    border-right: 1px solid #333;
    position: fixed;
    height: 100vh;
    z-index: 100;
	top: 0px;
}

.admin-main {
    flex: 1;
    margin-left: 280px;
    padding: 8rem;
}

.admin-brand {
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #333;
}

.admin-brand h1 {
    font-size: 1.5rem;
    color: var(--accent-purple);
    text-align: center;
}

/* ========== ADMIN PROFILE ========== */
.admin-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(187, 134, 252, 0.1);
    border-radius: 8px;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
}

.profile-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.profile-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ========== ADMIN MENU ========== */
.admin-menu ul {
    list-style: none;
    padding: 0;
}

.admin-menu li {
    margin-bottom: 0.5rem;
}

.admin-menu li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.admin-menu li a:hover {
    background: rgba(187, 134, 252, 0.1);
    color: var(--text-primary);
}

.admin-menu li a i {
    width: 20px;
    text-align: center;
}

.admin-menu li.active a {
    background: rgba(187, 134, 252, 0.2);
    color: var(--accent-purple);
}
/* Fixed Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

body {
    padding-top: 80px; /* Adjust based on your header height */
}

.content-columns {
    margin-top: 20px; /* Add some space between header and content */
}
/* ========== ADMIN HEADER ========== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.admin-header h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
}

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

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

.stat-card {
    background: var(--card-dark);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-purple);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(187, 134, 252, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-purple);
}

.stat-info h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.stat-info p {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* ========== CONTENT COLUMNS ========== */
.content-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 1200px) {
    .content-columns {
        grid-template-columns: 1fr;
    }
}

/* ========== RECENT ACTIVITY ========== */
.recent-activity {
    background: var(--card-dark);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #333;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.view-all {
    color: var(--accent-blue);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}

.view-all:hover {
    color: var(--accent-purple);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 0.75rem;
    background: rgba(187, 134, 252, 0.1);
    color: var(--accent-purple);
    font-size: 0.9rem;
}

.admin-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #333;
    font-size: 0.9rem;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.action-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.action-create {
    background: rgba(3, 218, 198, 0.1);
    color: var(--accent-blue);
}

.action-update {
    background: rgba(187, 134, 252, 0.1);
    color: var(--accent-purple);
}

.action-delete {
    background: rgba(207, 102, 121, 0.1);
    color: var(--accent-red);
}

.no-activity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(187, 134, 252, 0.05);
    border-radius: 6px;
    color: var(--text-secondary);
}

.no-activity i {
    color: var(--accent-purple);
}

/* ========== PASSWORD CHANGE FORM ========== */
.password-change-section {
    background: var(--card-dark);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #333;
}

.password-change-section h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

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

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.input-with-icon input {
    padding-left: 3rem !important;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .admin-sidebar {
        width: 250px;
    }
    
    .admin-main {
        margin-left: 250px;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1rem;
    }
    
    .admin-main {
        margin-left: 0;
        padding: 1rem;
    }
    
    .admin-layout {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Font Awesome for icons (add this in your head section) */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* ========== HEADER STYLES ========== */
.main-header {
    background-color: #000000;
    padding: 1rem 0;
    width: 100%;
    position: fixed;
    z-index: 100;
    box-shadow: var(--shadow-dark);
}

.header-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    margin-bottom: 1rem;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientText 8s ease infinite;
    background-size: 300% 300%;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}
/* ========== SEARCH RESULTS ========== */
.search-results {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.search-results h1 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--accent-purple);
}

.search-section {
    margin-bottom: 3rem;
}

.search-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--accent-blue);
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 0.5rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.result-card {
    background: var(--card-dark);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-dark);
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-purple);
}

.result-card h3 {
    margin-bottom: 0.5rem;
}

.result-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.result-card:hover h3 a {
    color: var(--accent-purple);
}

.result-card p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}
/* ========== NAVIGATION MENU ========== */
.main-nav {
    width: 100%;
    margin: 1rem 0;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0;
}

.main-nav a {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    text-decoration: none;
    
    /* Smooth black-to-right animation */
    background: linear-gradient(
        90deg,
        var(--accent-dark) 0%,
        #ffffff 25%,
        var(--accent-red) 50%,
        #ffffff 75%,
        var(--accent-dark) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: blackMoveRight 14s linear infinite;
}

@keyframes blackMoveRight {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.main-nav a:hover {
    animation: blueWhiteGradient 6s ease infinite;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: all 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
    left: 0;
}

/* ========== MAIN CONTENT ========== */
main {
    flex: 1;
    width: 100%;
    padding: 12rem 0;
}

/* ===== VERSION MANAGEMENT STYLES ===== */
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-active {
    background: rgba(3, 218, 198, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(3, 218, 198, 0.2);
}

.status-beta {
    background: rgba(187, 134, 252, 0.1);
    color: var(--accent-purple);
    border: 1px solid rgba(187, 134, 252, 0.2);
}

.status-deprecated {
    background: rgba(207, 102, 121, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(207, 102, 121, 0.2);
}

.admin-actions {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.table-responsive {
    overflow-x: auto;
}

.actions {
    white-space: nowrap;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

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

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

/* ========== COLUMN LAYOUT ========== */
.content-columns {
    display: flex;
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-column {
    flex: 1;
    min-width: 0;
}

/* ========== SECTION STYLES ========== */
.section-title {
    text-align: left;
    margin: 0 0 1.5rem 0;
    font-size: 1.8rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-purple);
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 100px;
}

/* ========== CARD GRID ========== */
.card-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    min-height: 800px;
}

/* ========== CARD STYLES ========== */
.card {
    background: var(--card-dark);
    border-radius: 8px;
    box-shadow: var(--shadow-dark);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.3s ease;
}

.card.active {
    opacity: 1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-purple);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #2a2a2a;
    position: relative;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    transition: opacity 0.3s ease;
}

.card:hover .card-image::before {
    opacity: 0.8;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-header {
    margin-bottom: 1rem;
}

.card-title {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.card:hover .card-title {
    color: var(--accent-purple);
}

.category-badge {
    display: inline-block;
    background: rgba(187, 134, 252, 0.2);
    color: var(--accent-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card:hover .category-badge {
    background: rgba(187, 134, 252, 0.3);
    transform: translateY(-2px);
}

.card-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.card-footer {
    margin-top: auto;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  background: var(--accent-purple, #8e44ad); /* Fallback if variable not defined */
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  background: #03dac6; /* slightly darker purple */
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
  background: #5e2073;
}


/* ========== DOWNLOAD CARD SPECIFIC STYLES ========== */
.download-card .card-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-btn {
    background: var(--accent-blue);
    color: #000;
    text-align: center;
}

.download-btn:hover {
    background: var(--accent-purple);
}

/* ========== ADMIN STYLES ========== */
.admin-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
}

.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    border-left: 4px solid;
}

.alert.error {
    background-color: rgba(207, 102, 121, 0.1);
    color: var(--accent-red);
    border-color: var(--accent-red);
}

.alert.success {
    background-color: rgba(3, 218, 198, 0.1);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.download-form {
    background: var(--card-dark);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-dark);
    border: 1px solid #333;
}

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

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

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-darker);
    border: 1px solid #333;
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-purple);
    outline: none;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.version-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(3, 218, 198, 0.05);
    border-radius: 4px;
    border: 1px dashed var(--accent-blue);
}

.admin-btn {
    background: var(--accent-purple);
    color: #000;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.admin-btn:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
}

/* ========== MODAL STYLES ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: var(--card-dark);
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid var(--accent-blue);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent-red);
}

.youtube-channel {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(3, 218, 198, 0.1);
    border-radius: 4px;
}

.youtube-channel img {
    width: 40px;
    height: 40px;
}

#verifySubscriptionForm {
    margin-top: 1.5rem;
}

#verificationResult {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
}

#verificationResult.success {
    background: rgba(3, 218, 198, 0.1);
    color: var(--accent-blue);
}

#verificationResult.error {
    background: rgba(207, 102, 121, 0.1);
    color: var(--accent-red);
}

/* ========== FOOTER ========== */
.main-footer {
    text-align: center;
    padding: 2rem;
    background: #000;
    color: var(--text-secondary);
    margin-top: auto;
    border-top: 1px solid #333;
}

/* ========== ANIMATIONS ========== */
@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes blueWhiteGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulseText {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 1200px) {
    .content-columns {
        flex-direction: column;
    }
    
    .card-grid {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .content-columns {
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .main-nav ul {
        gap: 0.8rem;
    }
    
    .logo {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .card-image {
        height: 150px;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .main-nav a {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 1.5rem;
    }
}

