/* project/styles.css */
:root {
    --primary-color: #6C63FF;
    --primary-dark: #4B3FFF;
    --secondary-color: #1E1E2F;
    --background-color: #12121A;
    --card-bg: #1C1C2A;
    --text-color: #FFFFFF;
    --muted-color: #B0BEC5;
    --accent-color: #FF6B6B;
    --shadow-color: rgba(108, 99, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--background-color);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.d-none {
    display: none !important;
}

.active {
    display: block !important;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.spinner-wrapper p {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
}

/* Navbar */
.navbar {
    background: var(--secondary-color);
    padding: 0.8rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 12px 12px;
    transform: perspective(1000px) translateZ(0);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    transform: perspective(1000px) translateZ(8px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.navbar-logo {
    width: 28px;
    height: 28px;
    margin-right: 6px;
}

.status-badge {
    background: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    animation: pulse 1.5s infinite;
}

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

.btn-dark, .btn-primary, .btn-link {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--shadow-color);
    transform: perspective(1000px) translateZ(0);
    transition: all 0.3s ease;
}

.btn-dark:hover, .btn-primary:hover, .btn-link:hover {
    background: var(--primary-dark);
    transform: perspective(1000px) translateZ(8px);
    box-shadow: 0 6px 15px var(--shadow-color);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100%;
    background: var(--secondary-color);
    padding: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.5);
}

.sidebar.active {
    transform: translateX(0);
}

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

.sidebar-header h5 {
    font-size: 1.2rem;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 1rem;
}

.sidebar-menu a {
    display: block;
    padding: 0.6rem 1.2rem;
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.sidebar-menu a:hover {
    background: var(--primary-color);
    transform: translateX(4px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

/* Main Content */
.main-content {
    margin-top: 70px;
    padding: 2rem;
}

/* Dashboard Page (API Content) */
.banner {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.name-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.title {
    font-size: 1.8rem;
    font-weight: 700;
}

.version-badge {
    background: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
}

.api-item {
    margin-bottom: 2rem;
}

.hero-section {
    background: var(--card-bg);
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: perspective(1000px) translateZ(0);
    transition: transform 0.3s ease;
}

.hero-section:hover {
    transform: perspective(1000px) translateZ(8px);
}

.summary-section {
    max-height: 0;
    overflow: hidden;
    background: var(--secondary-color);
    padding: 0 1.2rem;
    border-radius: 12px;
    transition: max-height 0.5s ease;
}

.summary-section.active {
    max-height: 1000px;
    padding: 1.2rem;
}

.param-input {
    background: var(--secondary-color);
    color: var(--text-color);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 0.6rem;
    font-size: 0.9rem;
}

.param-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px var(--shadow-color);
}

.endpoint-input {
    background: var(--secondary-color);
    color: var(--text-color);
    border-radius: 10px 0 0 10px;
    border: 2px solid transparent;
    font-size: 0.9rem;
}

.response-content {
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 1.2rem;
    min-height: 80px;
    color: var(--text-color);
    font-size: 0.9rem;
}

.copy-btn, .copy-response-btn, .btn-try, .clear-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--shadow-color);
    transform: perspective(1000px) translateZ(0);
    transition: all 0.3s ease;
}

.copy-btn:hover, .copy-response-btn:hover, .btn-try:hover, .clear-btn:hover {
    background: var(--primary-dark);
    transform: perspective(1000px) translateZ(8px);
    box-shadow: 0 6px 15px var(--shadow-color);
}

/* Profile Page */
.profile-card {
    max-width: 450px;
    margin: 2rem auto;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(2deg);
    transition: transform 0.3s ease;
}

.profile-card:hover {
    transform: perspective(1000px) rotateY(0deg) translateZ(8px);
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.profile-field {
    margin-top: 1.5rem;
}

.profile-field h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.form-control {
    background: var(--secondary-color);
    color: var(--text-color);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 0.6rem;
    font-size: 0.9rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px var(--shadow-color);
}

/* Shop Page */
.shop-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateX(-2deg);
    transition: transform 0.3s ease;
}

.shop-card:hover {
    transform: perspective(1000px) rotateX(0deg) translateZ(8px);
}

.payment-methods {
    text-align: center;
}

.qr-code {
    max-width: 180px;
    margin: 1.2rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: block;
    transition: opacity 0.3s ease;
}

.list-group-item {
    background: transparent;
    color: var(--text-color);
    border: none;
    padding: 0.6rem;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--muted-color);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    .sidebar {
        width: 100%;
    }
    .main-content {
        padding: 1.5rem;
    }
    .shop-card, .profile-card {
        padding: 1.2rem;
    }
}