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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: #fff;
    background-color: #0f172a;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-image: url('assets/backround.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-card {
    width: 100%;
    max-width: 28rem;
    background-color: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid #1e293b;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.card-header {
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.logo-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 1rem;
    color: #3b82f6;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-size: 0.875rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.card-description {
    font-size: 0.875rem;
    color: #94a3b8;
}

.card-content {
    padding: 0 1.5rem 2rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.password-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #e2e8f0;
}

.form-input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #334155;
    border-radius: 0.375rem;
    background-color: #1e293b;
    color: #fff;
    transition: all 0.2s;
}

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

.form-input::placeholder {
    color: #64748b;
}

.forgot-link {
    font-size: 0.875rem;
    color: #3b82f6;
    text-decoration: none;
    transition: text-decoration 0.2s;
}

.forgot-link:hover {
    text-decoration: underline;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-input {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.875rem;
    color: #cbd5e1;
    cursor: pointer;
    user-select: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon {
    flex-shrink: 0;
}

.btn-primary {
    background-color: #3b82f6;
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-discord {
    width: 100%;
    background-color: #5865F2;
    color: #fff;
    border: 1px solid #5865F2;
}

.btn-discord:hover {
    background-color: #4752C4;
}

.btn-outline {
    width: 100%;
    background-color: transparent;
    color: #fff;
    border: 1px solid #334155;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-logout {
    background-color: transparent;
    color: #fff;
    border: 1px solid #334155;
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
}

.btn-logout:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-ghost {
    background-color: transparent;
    color: #e2e8f0;
    border: none;
    padding: 0.5rem 0.75rem;
}

.btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-full {
    width: 100%;
}

.divider-container {
    display: flex;
    align-items: center;
    margin: 1.5rem 0 1rem;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: #334155;
}

.divider-text {
    padding: 0 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
}

.signup-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

.signup-link {
    color: #3b82f6;
    text-decoration: none;
}

.signup-link:hover {
    text-decoration: underline;
}

/* Account Creation Page Styles */
.login-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

.login-link {
    color: #3b82f6;
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

.link {
    color: #3b82f6;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.form-hint {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Dashboard */
.dashboard-container {
    min-height: 100vh;
    background-color: #0f172a;
}

.dashboard-header {
    border-bottom: 1px solid #1e293b;
    background-color: rgba(2, 6, 23, 0.5);
    backdrop-filter: blur(8px);
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 0.5rem;
    color: #3b82f6;
}

.header-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.header-subtitle {
    font-size: 0.875rem;
    color: #94a3b8;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    text-align: right;
}

.user-label {
    font-size: 0.875rem;
    color: #94a3b8;
}

.user-email {
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
}

.dashboard-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.page-description {
    font-size: 1rem;
    color: #94a3b8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: rgba(2, 6, 23, 0.5);
    border: 1px solid #1e293b;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

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

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
}

.stat-header svg {
    color: #94a3b8;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.stat-description {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-card {
    background-color: rgba(2, 6, 23, 0.5);
    border: 1px solid #1e293b;
    border-radius: 0.5rem;
}

.dashboard-card-header {
    padding: 1.5rem 1.5rem 1rem;
}

.dashboard-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.dashboard-card-description {
    font-size: 0.875rem;
    color: #94a3b8;
}

.dashboard-card-content {
    padding: 0 1.5rem 1.5rem;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: rgba(15, 23, 42, 0.5);
    border: 1px solid #1e293b;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-name {
    font-weight: 500;
    color: #fff;
}

.service-status {
    font-size: 0.875rem;
    color: #94a3b8;
}

.service-cost {
    font-weight: 600;
    color: #fff;
}

.payment-card {
    padding: 1rem;
    background-color: rgba(15, 23, 42, 0.5);
    border: 1px solid #1e293b;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.payment-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.payment-card-name {
    font-weight: 500;
    color: #fff;
}

.payment-card-expiry {
    font-size: 0.875rem;
    color: #94a3b8;
}

.payment-info svg {
    color: #94a3b8;
}

.invoice-card {
    margin-top: 1.5rem;
}

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

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

.invoice-table thead {
    border-bottom: 1px solid #1e293b;
}

.invoice-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
}

.invoice-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
    color: #fff;
}

.invoice-table tbody tr:hover {
    background-color: rgba(15, 23, 42, 0.3);
}

.invoice-id {
    font-weight: 500;
}

.invoice-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
}

.invoice-date svg {
    color: #94a3b8;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    background-color: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border-radius: 0.25rem;
}

.text-right {
    text-align: right;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 0.875rem;
    opacity: 0;
    transform: translateY(-1rem);
    transition: all 0.3s;
    pointer-events: none;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast.success {
    border-left: 4px solid #4ade80;
}

.toast.info {
    border-left: 4px solid #3b82f6;
}

/* Loading Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 640px) {
    .user-info {
        display: none;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .invoice-table {
        font-size: 0.875rem;
    }

    .invoice-table th,
    .invoice-table td {
        padding: 0.5rem;
    }
}
