@import url('https://fonts.googleapis.com/css2?family=Michroma&family=Inter:wght@300;400&family=Outfit:wght@800&display=swap');

/* Main color variables adapted to match current dark theme */
:root {
    --primary-color: #0198D7;
    --accent-color: #00E5FF;
    --background-dark: #000000;
    --background-dark-2: #0a0a0a;
    --background-light: rgba(255, 255, 255, 0.02);
    --text-dark: #000000;
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-accent: #0198D7;
    --hover-color: #00E5FF;
    
    /* Status colors matching design system */
    --green: #00D084;
    --green-hover: #00FFAA;
    --green-disabled: #4A8C73;
    --blue: #0198D7;
    --blue-hover: #00E5FF;
    --blue-disabled: #4A7A8C;
    --red: #FF4D4D;
    --red-hover: #FF3333;
    --red-disabled: #8C4A4A;
    --yellow: #FFC107;
    --yellow-hover: #FFFF00;
    --yellow-disabled: #8C7A4A;
    --purple: #A855F7;
    --purple-hover: #CC66FF;
    --purple-disabled: #7A6B8C;
}

/* Person Badge - Dark theme adaptation */
.person-badge {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 3px;
    font-size: 11px;
    text-align: center;
    margin: 2px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* System Button Styles - Futuristic dark theme */
.system-btn,
.system-btn-inline,
.system-form input[type="submit"],
.system-form button[type="submit"],
.system-form-inline input[type="submit"],
.system-form-inline button[type="submit"] {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    letter-spacing: 0.5px;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.system-btn,
.system-form input[type="submit"],
.system-form button[type="submit"] {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin: 8px 4px;
}

.system-btn-inline,
.system-form-inline input[type="submit"],
.system-form-inline button[type="submit"] {
    padding: 6px 12px;
    font-size: 0.8rem;
    margin: 2px 4px 2px 0;
}

/* Button variants with new color system */
.system-btn-default,
.system-form input[type="submit"],
.system-form button[type="submit"],
.system-form-inline input[type="submit"],
.system-form-inline button[type="submit"] {
    background-color: var(--background-light);
    color: var(--text-light);
    border-color: var(--border-color);
}

.system-btn-default:hover,
.system-form input[type="submit"]:hover,
.system-form button[type="submit"]:hover,
.system-form-inline input[type="submit"]:hover,
.system-form-inline button[type="submit"]:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

.system-btn-green,
.system-btn-inline-green {
    color: var(--text-light);
    background-color: var(--green);
    border-color: var(--green);
}

.system-btn-green:hover,
.system-btn-inline-green:hover {
    background-color: var(--green-hover);
    border-color: var(--green-hover);
    color: var(--text-dark);
}

.system-btn-blue,
.system-btn-inline-blue {
    color: var(--text-light);
    background-color: var(--blue);
    border-color: var(--blue);
}

.system-btn-blue:hover,
.system-btn-inline-blue:hover {
    background-color: var(--blue-hover);
    border-color: var(--blue-hover);
    color: var(--text-dark);
}

.system-btn-red,
.system-btn-inline-red {
    color: var(--text-light);
    background-color: var(--red);
    border-color: var(--red);
}

.system-btn-red:hover,
.system-btn-inline-red:hover {
    background-color: var(--red-hover);
    border-color: var(--red-hover);
}

.system-btn-yellow,
.system-btn-inline-yellow {
    color: var(--text-dark);
    background-color: var(--yellow);
    border-color: var(--yellow);
}

.system-btn-yellow:hover,
.system-btn-inline-yellow:hover {
    background-color: var(--yellow-hover);
    border-color: var(--yellow-hover);
}

.system-btn-purple,
.system-btn-inline-purple {
    color: var(--text-light);
    background-color: var(--purple);
    border-color: var(--purple);
}

.system-btn-purple:hover,
.system-btn-inline-purple:hover {
    background-color: var(--purple-hover);
    border-color: var(--purple-hover);
}

/* Form Styles - Dark theme adaptation */
.system-form {
    max-width: 800px;
    margin: 20px auto;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    border: 2px solid var(--border-color);
    font-family: 'Inter', sans-serif;
    position: relative;
}

/* Add subtle corner accents to forms */
.system-form::before,
.system-form::after {
    content: "";
    position: absolute;
    pointer-events: none;
    width: 20px;
    height: 20px;
}

.system-form::before {
    left: -2px;
    top: -2px;
    background:
        linear-gradient(var(--primary-color), var(--primary-color)) 0 0 / 100% 2px no-repeat,
        linear-gradient(var(--primary-color), var(--primary-color)) 0 0 / 2px 100% no-repeat;
}

.system-form::after {
    right: -2px;
    bottom: -2px;
    background:
        linear-gradient(var(--primary-color), var(--primary-color)) 100% 100% / 100% 2px no-repeat,
        linear-gradient(var(--primary-color), var(--primary-color)) 100% 100% / 2px 100% no-repeat;
}

.system-form label,
.system-form-inline label {
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.system-form input[type="text"],
.system-form input[type="email"],
.system-form input[type="password"],
.system-form input[type="number"],
.system-form input[type="date"],
.system-form input[type="tel"],
.system-form input[type="url"],
.system-form input[type="search"],
.system-form textarea,
.system-form select,
.system-form-inline input[type="text"],
.system-form-inline input[type="email"],
.system-form-inline input[type="password"],
.system-form-inline input[type="number"],
.system-form-inline input[type="date"],
.system-form-inline input[type="tel"],
.system-form-inline input[type="url"],
.system-form-inline input[type="search"],
.system-form-inline textarea,
.system-form-inline select {
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-light);
    border-radius: 3px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.system-form input:focus,
.system-form textarea:focus,
.system-form select:focus,
.system-form-inline input:focus,
.system-form-inline textarea:focus,
.system-form-inline select:focus {
    border-color: var(--primary-color);
    outline: none;
    background-color: rgba(255, 255, 255, 0.06);
}

/* Table Styles - Dark futuristic theme */
.system-table, 
.system-table-responsive {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    position: relative;
}

/* Add corner accents to tables */
.system-table::before,
.system-table::after,
.system-table-responsive::before,
.system-table-responsive::after {
    content: "";
    position: absolute;
    pointer-events: none;
    width: 20px;
    height: 20px;
}

.system-table::before,
.system-table-responsive::before {
    left: -2px;
    top: -2px;
    background:
        linear-gradient(var(--primary-color), var(--primary-color)) 0 0 / 100% 2px no-repeat,
        linear-gradient(var(--primary-color), var(--primary-color)) 0 0 / 2px 100% no-repeat;
}

.system-table::after,
.system-table-responsive::after {
    right: -2px;
    bottom: -2px;
    background:
        linear-gradient(var(--primary-color), var(--primary-color)) 100% 100% / 100% 2px no-repeat,
        linear-gradient(var(--primary-color), var(--primary-color)) 100% 100% / 2px 100% no-repeat;
}

.system-table thead, 
.system-table-responsive thead {
    background-color: var(--primary-color);
}

.system-table th, 
.system-table-responsive th {
    padding: 12px 16px;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.system-table td, 
.system-table-responsive td {
    padding: 12px 16px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.system-table tbody tr:hover,
.system-table-responsive tbody tr:hover {
    background-color: rgba(1, 152, 215, 0.1);
}

/* Bubble Grid - Dark theme adaptation */
.bubble-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    margin: 20px 0;
}

.bubble {
    padding: 0;
    margin: 0;
    border-radius: 4px;
    border: 2px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

/* Add corner accents to bubbles */
.bubble::before,
.bubble::after {
    content: "";
    position: absolute;
    pointer-events: none;
    width: 16px;
    height: 16px;
}

.bubble::before {
    left: -2px;
    top: -2px;
    background:
        linear-gradient(var(--primary-color), var(--primary-color)) 0 0 / 100% 2px no-repeat,
        linear-gradient(var(--primary-color), var(--primary-color)) 0 0 / 2px 100% no-repeat;
}

.bubble::after {
    right: -2px;
    bottom: -2px;
    background:
        linear-gradient(var(--primary-color), var(--primary-color)) 100% 100% / 100% 2px no-repeat,
        linear-gradient(var(--primary-color), var(--primary-color)) 100% 100% / 2px 100% no-repeat;
}

.bubble-header {
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    text-align: center;
    margin: 0;
    padding: 12px 16px;
    color: var(--text-light);
    background-color: var(--primary-color);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bubble-content {
    padding: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.bubble a {
    display: block;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-light);
    margin: 0;
    padding: 12px 16px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    letter-spacing: 0.5px;
}

.bubble a:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Payment Cards - Dark theme adaptation */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.payment-card {
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
}

/* Add corner accents to payment cards */
.payment-card::before,
.payment-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.payment-card::before {
    left: -2px;
    top: -2px;
    background:
        linear-gradient(var(--primary-color), var(--primary-color)) 0 0 / 100% 2px no-repeat,
        linear-gradient(var(--primary-color), var(--primary-color)) 0 0 / 2px 100% no-repeat;
}

.payment-card::after {
    right: -2px;
    bottom: -2px;
    background:
        linear-gradient(var(--primary-color), var(--primary-color)) 100% 100% / 100% 2px no-repeat,
        linear-gradient(var(--primary-color), var(--primary-color)) 100% 100% / 2px 100% no-repeat;
}

.payment-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(1, 152, 215, 0.2);
}

.payment-card:hover::before,
.payment-card:hover::after {
    background:
        linear-gradient(var(--hover-color), var(--hover-color)) 0 0 / 100% 2px no-repeat,
        linear-gradient(var(--hover-color), var(--hover-color)) 0 0 / 2px 100% no-repeat;
}

.payment-card:hover::after {
    background:
        linear-gradient(var(--hover-color), var(--hover-color)) 100% 100% / 100% 2px no-repeat,
        linear-gradient(var(--hover-color), var(--hover-color)) 100% 100% / 2px 100% no-repeat;
}

.payment-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.payment-card-header img {
    height: 40px;
    margin-right: 16px;
}

.payment-card-header h3 {
    margin: 0;
    color: var(--text-light);
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.payment-card-content {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.payment-card-content p {
    margin: 12px 0;
}

.payment-card-content strong {
    color: var(--text-light);
}

.payment-card-content form {
    margin-top: 20px;
}

.payment-card-content button {
    width: 100%;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.payment-card-content button:hover {
    background-color: var(--hover-color);
    border-color: var(--hover-color);
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .system-form-inline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .system-form-inline > * {
        width: 100%;
        max-width: none;
    }
    
    .system-table-responsive {
        border: none;
        background: none;
    }
    
    .system-table-responsive::before,
    .system-table-responsive::after {
        display: none;
    }
    
    .system-table-responsive thead {
        display: none;
    }
    
    .system-table-responsive, 
    .system-table-responsive tbody, 
    .system-table-responsive tr, 
    .system-table-responsive td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    .system-table-responsive tr {
        margin-bottom: 16px;
        display: block;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--border-color);
        border-radius: 4px;
        padding: 12px;
        position: relative;
    }
    
    .system-table-responsive td {
        text-align: left;
        padding: 8px 8px 8px 45%;
        position: relative;
        border-bottom: 1px solid var(--border-color);
        min-height: 40px;
        display: flex;
        align-items: center;
    }

    .system-table-responsive td:last-child {
        border-bottom: none;
    }
    
    .system-table-responsive td::before {
        content: attr(data-label);
        position: absolute;
        left: 8px;
        width: 40%;
        padding-right: 10px;
        font-weight: 400;
        color: var(--text-light);
        font-family: 'Inter', sans-serif;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        font-size: 0.8rem;
    }
    
    .bubble-grid {
        grid-template-columns: 1fr;
    }

    /* Hide corner accents on mobile for cleaner look */
    .bubble::before,
    .bubble::after,
    .payment-card::before,
    .payment-card::after,
    .system-form::before,
    .system-form::after {
        display: none;
    }
}

/* Utility classes for dark theme */
.text-primary { color: var(--primary-color); }
.text-light { color: var(--text-light); }
.text-muted { color: var(--text-muted); }
.bg-dark { background-color: var(--background-dark); }
.bg-light { background-color: var(--background-light); }
.border-accent { border-color: var(--primary-color); }

/* Override default form submit styling */
.system-form input[type="submit"] {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
    display: block;
    width: 100%;
    margin-top: 16px;
}

.system-form input[type="submit"]:hover {
    background-color: var(--hover-color);
    border-color: var(--hover-color);
    color: var(--text-dark);
}