:root {
    --primary-gradient: linear-gradient(120deg, #8e2de2 0%, #4a00e0 100%);
    --secondary-gradient: linear-gradient(120deg, #4158d0 0%, #c850c0 100%);
    --info-gradient: linear-gradient(135deg, #4e73df, #4e73df);
    --danger-gradient: linear-gradient(135deg, #ff9966, #ff5e62);
    --dark-color: #333;
    --light-color: #fff;
    --border-radius: 10px;
    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --primary-bg: #141e30;
    --secondary-bg: #243b55;
    --text-light: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #141e30;
    color: var(--dark-color);
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
}

.container {
     max-width: 900px ;
    margin: 30px auto ;
    padding: 20px ;
}

.download-card {
    /*background-color: white;*/
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.05);
}

.download-header {
    background: linear-gradient(120deg, #4158d0 0%, #c850c0 100%) !important;
    color: white !important;
    padding: .75rem 1.25rem !important;
    text-align: center !important;
    position: relative !important;
    font-size: 11px !important;
    overflow: hidden !important;
}

.download-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.download-header h1 {
             /*margin-bottom: 10px; */
    font-size: 1.0rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important ;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.download-header p {
    opacity: 0.9;
    font-size: 16px;
}

.download-body {
      padding: 20px;
      color: var(--dark-color);
      background: #243b55;
}

.file-info {
        margin: 20px 0;
        border: 1px solid #7f94a9;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
}

.file-info .card-body {
    padding: 0;
}

.file-info .list-group {
    margin: 0;
}

.file-info .list-group-item {
    padding: 5px 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border: none !important;
    border-bottom: 1px solid #dee2e6 !important;
    font-size: 16px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    /* background: #fff !important; */
    background: #243b55;
}

.file-info .list-group-item:last-child {
    border-bottom: none;
}

.file-info .list-group-item i {
    font-style: italic;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.download-section h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #ffac8e;
    font-size: 20px !important;
}

/*.btn-gdtot, .btn-filepress {*/
/*    display: inline-flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    padding: 12px 20px;*/
/*    border-radius: var(--border-radius);*/
/*    text-decoration: none;*/
/*    color: white;*/
/*    font-weight: 600;*/
/*    transition: var(--transition);*/
/*    position: relative;*/
/*    overflow: hidden;*/
/*    margin: 0;*/
/*    width: auto;*/
/*    min-width: 250px;*/
/*}*/

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
    width: auto;
    align-self: center;
    max-width: 100%;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn-generate {
    background: var(--secondary-gradient);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.btn-generate:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.6);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    width: auto;
    align-self: center;
    max-width: 100%;
    margin-bottom: 10px !important;
    margin-top: 5px !important;
    min-width: 250px;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transition: all 0.5s ease;
    z-index: -1;
}

.download-btn:hover::before {
    left: 0;
}

.btn-buzzheavier {
    background: var(--info-gradient);
    box-shadow: 0 4px 15px rgba(33, 147, 176, 0.4);
}

.btn-pixeldrain-download {
    background: var(--secondary-gradient);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.btn-pixeldrain-web {
    background: var(--danger-gradient);
    box-shadow: 0 4px 15px rgba(255, 153, 102, 0.4);
}

.download-btn:hover {
    transform: translateY(-3px);
}

.btn-buzzheavier:hover {
    box-shadow: 0 6px 20px rgba(33, 147, 176, 0.6);
}

.btn-pixeldrain-download:hover {
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.6);
}

.btn-pixeldrain-web:hover {
    box-shadow: 0 6px 20px rgba(255, 153, 102, 0.6);
}

.download-btn i {
    font-size: 18px;
}

.loading {
    display: none;
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.note-text {
    margin-top: 30px;
    padding: 20px;
    background-color: #24415d;
    border-radius: var(--border-radius);
    border-left: 5px solid #8900ff;
    font-size: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    color: #ffffff;
}

.note-text i {
    color: #e22d90;
}

.processing-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    background-color: #f8f9fa;
    border: 1px solid rgba(0,0,0,0.05);
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    width: 100%;
    margin: 10px auto;
    text-align: center;
}

.processing-badge i {
    color: #8e2de2;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 15px;
        margin: 15px auto;
    }
    
    .download-header {
        padding: 20px;
    }
    
    .download-header h1 {
        font-size: 22px;
    }
    
    .download-body {
        padding: 20px;
    }
    
    .download-btn {
        padding: 10px 16px;
        font-size: 16px;
        width: auto;
        max-width: 100%;
    }

    .btn{

        padding: 10px 16px;
        font-size: 20px;
        width: auto;
        max-width: 100%;

    }
    
    .download-btn i {
        font-size: 16px;
    }
    
    .file-info {
        margin: 15px 0;
    }
    
    .file-info .list-group-item {
        padding: 14px 16px;
        font-size: 15px;
        /* background: #243b55; */
    }
    
    .file-info .list-group-item i {
        font-size: 14px;
    }
    
    /* Add margin between items for better separation */
    .file-info .list-group-item + .list-group-item {
        border-top: 1px solid rgba(0,0,0,.08);
    }
    
    .note-text {
        padding: 15px;
        font-size: 14px;
    }
}

.btn-gdtot {
    background: linear-gradient(120deg, #8e2de2 0%, #4a00e0 100%);
    box-shadow: 0 4px 15px rgba(142, 45, 226, 0.4);
}

.btn-filepress {
    background: linear-gradient(120deg, #ff416c 0%, #ff4b2b 100%);
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4);
}

.btn-xfile {
    background: linear-gradient(120deg, #015a14 0%, #05da48 100%);
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.4);
}

.btn-gdtot:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(142, 45, 226, 0.6);
}

.btn-filepress:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 65, 108, 0.6);
}

.btn-xfile:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 198, 255, 0.6);
}

.btn-text, .btn-processing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 0 10px;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-processing {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    background: transparent;
    color: white;
}

.processing .btn-text {
    opacity: 0;
    visibility: hidden;
}

.processing .btn-processing {
    opacity: 1;
    visibility: visible;
    z-index: 3;
}

.btn-processing i {
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsive Styles */
/*@media (max-width: 576px) {*/
/*    .btn-gdtot, .btn-filepress {*/
/*        padding: 10px 16px;*/
/*        font-size: 14px;*/
/*    }*/
/*}*/

.btn-instant-download {
    background: linear-gradient(120deg, #1e90ff 0%, #0066cc 100%);
    color: white;
    font-weight: bold;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.4);
}

.btn-instant-download:hover {
    background: linear-gradient(120deg, #0066cc 0%, #004080 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.6);
}

.instant-note {
    font-size: 14px;
    color: #444;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.5;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    border-left: 3px solid #1e90ff;
}

/* Responsive styles for instant note */
@media (max-width: 576px) {
    .instant-note {
        font-size: 13px;
        padding: 8px;
        margin-bottom: 15px;
    }
}

#instant-download-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 15px;
    text-align: center;
}

#instant-download-link {
    margin: 0 auto !important;
    display: inline-flex !important;
    justify-content: center !important;
}

.instant-note {
    text-align: center !important;
    width: 100%;
    margin-top: 10px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.download-section a {
    margin: 0 auto;
    margin-bottom: 10px;
}

.share-link-section {
    margin: 20px 0;
    padding: 0 10px;
}

.share-link-section .input-group {
    display: flex;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.share-link-section input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 15px;
    color: #ffffff;
    background: #243b55;
    outline: none;
}

.share-link-section .copy-btn {
    padding: 12px 20px;
    border: none;
    background: var(--info-gradient);
    color: white;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    min-width: 150px;
    justify-content: center;
}

.share-link-section .copy-btn:hover {
    opacity: 0.9;
}

.share-link-section .copy-btn i {
    font-size: 16px;
}

@media (max-width: 576px) {
    .share-link-section {
        margin: 15px 0;
        padding: 0;
    }

    .share-link-section .input-group {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .share-link-section input {
        padding: 12px;
        text-align: left;
        min-width: 0;
        flex: 1;
    }

    .share-link-section .copy-btn {
        border-radius: 0;
        padding: 12px 15px;
        white-space: nowrap;
        font-size: 14px;
        flex-shrink: 0;
        min-width: 130px;
    }

    .share-link-section .copy-btn i {
        margin-right: 6px;
    }
}

/* Header Styles - Matching index.php */
.header {
    background: rgba(20, 30, 48, 0.85);
    padding: 1rem 2rem;
    width: 100%;
    margin: auto;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-1px);
}

.logo i {
    font-size: 1.5rem;
    background: linear-gradient(120deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(240, 147, 251, 0.2));
}

.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.login-btn, .register-btn {
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--light-color);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    background: linear-gradient(120deg, rgba(43, 88, 118, 0.7) 0%, rgba(78, 67, 118, 0.7) 100%);
}

.login-btn i, .register-btn i {
    font-size: 0.9rem;
}

.login-btn:hover, .register-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(120deg, rgba(78, 67, 118, 0.8) 0%, rgba(43, 88, 118, 0.8) 100%);
}

/* Mobile Responsive Header */
@media (max-width: 768px) {
    .header {
        padding: 0.7rem 1rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo i {
        font-size: 1.1rem;
    }
    
    .login-btn, .register-btn {
        padding: 0.35rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .login-btn i, .register-btn i {
        font-size: 0.75rem;
    }
}

/* Footer Styles */
.footer {
    padding: 15px 0;
    text-align: right;
}

.footer-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0 30px;
}

.btn-streamhg {
    background: linear-gradient(45deg, #FF512F, #DD2476);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 81, 47, 0.4);
}

.btn-streamhg:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(221, 36, 118, 0.4);
}

.btn-streamhg .btn-text i {
    color: #fff;
}

.btn-streamhg.processing {
    background: linear-gradient(45deg, #DD2476, #FF512F) !important;
    opacity: 0.8;
    cursor: wait;
}

.btn-streamhg.processing .btn-text {
    opacity: 0;
    visibility: hidden;
}

.btn-streamhg.processing .btn-processing {
    opacity: 1;
    visibility: visible;
    z-index: 3;
    display: flex;
    color: #fff;
}

.btn-streamhg .btn-processing i {
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
