@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
    --primary-color: #00aaff;
    --secondary-color: #9c27b0;
    --dark-bg: #0d0c22;
    --light-bg: #1a193d;
    --card-bg: #14132d;
    --text-color: #e0e0e0;
    --text-muted: #8a8a8a;
    --border-color: rgba(0, 170, 255, 0.3);
    --success-color: #4caf50;
    --error-color: #f44336;
}

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

.main-header {
    background-image: linear-gradient(rgba(13, 12, 34, 0.7), rgba(13, 12, 34, 0.7)), url('/images/headers_bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 15px 30px;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    max-width: 250px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.nav-login-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-login-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.nav-logout-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    font-weight: bold;
}

.nav-logout-btn:hover {
    color: var(--error-color);
}

#api-status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ffc107; /* Pending */
    margin-left: -15px;
}

#api-status-indicator.online {
    background-color: var(--success-color);
    box-shadow: 0 0 8px var(--success-color);
}

#api-status-indicator.offline {
    background-color: var(--error-color);
    box-shadow: 0 0 8px var(--error-color);
}

.container {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.main-footer {
    background-color: var(--light-bg);
    text-align: center;
    padding: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.5);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(156, 39, 176, 0.7);
}

.auth-container {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 450px;
    text-align: center;
    margin: auto;
}

.auth-container h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 12px;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 1em;
    box-sizing: border-box;
}

.auth-container .btn-primary {
    width: 100%;
    margin-top: 10px;
}

.auth-container p {
    margin-top: 20px;
    color: var(--text-muted);
}

.auth-container p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.getting-started, .checkout-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.pricing-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 10px;
    margin-top: 30px;
    width: 100%;
    max-width: 500px;
}

.price {
    font-size: 3em;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0;
}

.pricing-box ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px 0;
}

.pricing-box ul li {
    margin-bottom: 10px;
}

.pricing-box ul li i {
    color: var(--success-color);
    margin-right: 10px;
}

.dashboard {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    font-weight: bold;
    color: white;
    margin: 0 auto 15px auto;
}

.status-active {
    color: var(--success-color);
    font-weight: bold;
    text-transform: capitalize;
}

.api-key-section {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.input-with-button {
    display: flex;
    align-items: center;
}

.input-with-button input {
    flex-grow: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-copy {
    padding: 12px 15px;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: white;
    cursor: pointer;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.swagger-ui .opblock .opblock-body {
    padding: 10px;
}

.code-generator-container {
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 15px;
}

.code-box {
    background-color: #1e1e1e;
    border-radius: 5px;
    margin-bottom: 10px;
    position: relative;
}

.code-box pre {
    padding: 15px;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.code-box pre code {
    color: #d4d4d4;
    font-family: 'Courier New', Courier, monospace;
}

.btn-copy-snippet {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #333;
    border: 1px solid #555;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    padding: 5px 8px;
}

.hero-section {
    text-align: center;
    padding: 100px 20px;
    background-image: linear-gradient(rgba(13, 12, 34, 0.8), rgba(13, 12, 34, 0.9)), url('/images/headers_bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 15px var(--primary-color);
}

.subtitle {
    font-size: 1.3em;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.info-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 60px 20px;
    flex-wrap: wrap;
    background-color: var(--dark-bg);
}

.info-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.info-card h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.info-card i {
    font-size: 2em;
    margin-bottom: 15px;
}

.info-card a {
    color: var(--primary-color);
    font-weight: bold;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.profile-card, .balance-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.profile-card {
    text-align: center;
}

.balance-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.balance-amount {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0 20px 0;
}

.btn-deposit {
    background: var(--success-color);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease;
    display: inline-block;
}

.btn-deposit:hover {
    transform: scale(1.05);
}

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

.dashboard-actions {
    margin-top: 30px;
    text-align: center;
}

.btn-secondary {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

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

.full-width {
    grid-column: 1 / -1;
}