/* ===================================
   DOWNLOADER V2 - PROFESSIONAL STYLES (ENLARGED)
   =================================== */

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
}

.dark {
    background: #0f172a;
    color: #e2e8f0;
}

.page-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 25px;
}

/* ===================================
   HEADER & TOP BAR
   =================================== */

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 18px;
    padding: 25px 35px;
    margin-bottom: 35px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.top-bar h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.top-btns {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* ===================================
   BUTTONS - UNIFIED SYSTEM (ENLARGED)
   =================================== */

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

.btn.primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn.primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn.copy {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.btn.copy:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
    transform: translateY(-2px);
}

.btn.top-link {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn.top-link:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    transform: translateY(-2px);
}

.btn.top-logout {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn.top-logout:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-2px);
}

/* ===================================
   CARDS GRID & CARD COMPONENTS (ENLARGED)
   =================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid #334155;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    border-color: #3b82f6;
}

.card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #334155;
    padding: 12px;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.card:hover .card-image img {
    transform: scale(1.03);
}

.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #374151, #1f2937);
    color: #9ca3af;
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
    padding: 20px;
}

.card-body {
    padding: 25px;
}

.card-body h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-body p {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
}

.card-actions {
    padding: 0 25px 25px 25px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ===================================
   ACCESS BOX (LOGIN FORM)
   =================================== */

.access-box {
    max-width: 450px;
    margin: 140px auto;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid #334155;
    border-radius: 22px;
    padding: 45px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.access-box h1 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 18px;
    font-weight: 700;
}

.access-box p {
    color: #cbd5e1;
    margin-bottom: 30px;
    font-size: 16px;
}

.access-box input {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 25px;
    border: 1px solid #334155;
    border-radius: 14px;
    background: #0f172a;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.access-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.access-box button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.access-box button:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* ===================================
   ALERTS & NOTIFICATIONS
   =================================== */

.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 14px;
}

.alert-error {
    background: rgba(220, 38, 38, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

/* ===================================
   EMPTY STATE
   =================================== */

.empty-state {
    text-align: center;
    padding: 100px 25px;
    color: #9ca3af;
}

.empty-state h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
}

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

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .page-wrapper {
        padding: 18px;
    }
    
    .top-bar {
        flex-direction: column;
        gap: 18px;
        padding: 22px;
    }
    
    .top-bar h1 {
        font-size: 1.7rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .access-box {
        margin: 60px auto;
        padding: 35px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .top-btns {
        flex-direction: column;
        gap: 10px;
    }
    
    .card-image {
        height: 150px;
        padding: 10px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .card-actions {
        padding: 0 20px 20px 20px;
    }
}

/* ===================================
   COPY BUTTON FUNCTIONALITY
   =================================== */

.copy-btn.copied,
.copy-btn.success {
    background: linear-gradient(135deg, #059669, #047857) !important;
    color: white;
}

.copy-btn.copied:after,
.copy-btn.success:after {
    content: ' ✓';
}