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

/* Main color variables from Advik */
:root {
    --primary-color: #5863F8;
    --accent-color: #FFDD24;
    --background-light: #f0f0f0;
    --text-dark: #252525;
    --text-light: #f5f5f5;
    --border-color: #5863F8;
    --hover-color: #FFDD24;
    
    /* Original system colors preserved for buttons */
    --green: rgba(40, 167, 69, 0.8);
    --green-hover: rgba(40, 167, 69, 1);
    --blue: rgba(0, 123, 255, 0.8);
    --blue-hover: rgba(0, 123, 255, 1);
    --red: rgba(220, 53, 69, 0.8);
    --red-hover: rgba(220, 53, 69, 1);
    --yellow: rgba(255, 193, 7, 0.8);
    --yellow-hover: rgba(255, 193, 7, 1);
    --purple: rgba(111, 66, 193, 0.8);
    --purple-hover: rgba(111, 66, 193, 1);
}

/* Person Badge - Resized and Changa font */
.person-badge {
    display: inline-block;
    padding: 3px 8px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 3px;
    font-size: 11px;
    text-align: center;
    margin: 2px;
    font-family: 'Changa', sans-serif;
    letter-spacing: 0.5px;
}

/* System Button Styles - Changa font and original colors */
.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: 'Changa', sans-serif;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    letter-spacing: 0.5px;
    color:#ffffff;
}

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

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

/* Button variants with original colors */
.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: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.2);
}

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

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

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

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

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

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

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

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

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

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

/* Form Styles - Changa font */
.system-form {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(240, 240, 240, 0.72);
    border-radius: 10px;
    border: 3px solid var(--border-color);
    font-family: 'Changa', sans-serif;
}

.system-form label,
.system-form-inline label {
    color: var(--primary-color);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.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: 2px solid var(--border-color);
    padding: 8px;
    background-color: var(--background-light);
    color: var(--primary-color);
    border-radius: 4px;
    font-family: 'Changa', sans-serif;
    font-size: 0.95rem;
}

/* Table Styles */
.system-table, .system-table-responsive {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    background: rgba(240, 240, 240, 0.72);
    border: 3px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    font-family: 'Changa', sans-serif;
}

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

.system-table th, .system-table-responsive th {
    padding: 10px 12px;
    color: var(--text-light);
    font-family: 'Changa', sans-serif;
    letter-spacing: 0.5px;
    font-weight: 600;
    font-size: 0.95rem;
}

.system-table td, .system-table-responsive td {
    padding: 8px 12px;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(88, 99, 248, 0.2);
    font-size: 0.9rem;
}

/* Bubble Grid */
.bubble-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 300px));
    grid-template-rows: masonry;
}

.bubble {
    padding: 10px;
    margin: 10px;
    border-radius: 5px;
    border: 2px solid var(--border-color);
    background: rgba(240, 240, 240, 0.72);
}

.bubble-header {
    font-size: 1.1em;
    font-weight: 600;
    font-family: 'Changa', sans-serif;
    text-align: center;
    margin: -10px;
    padding: 8px;
    margin-bottom: 15px;
    color: var(--text-light);
    background-color: var(--primary-color);
    letter-spacing: 0.5px;
}

.bubble a {
    display: block;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-light);
    margin: -10px;
    padding: 5px;
    margin-top: 15px;
    text-decoration: none;
    font-family: 'Changa', sans-serif;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

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

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

.payment-card {
    background: rgba(240, 240, 240, 0.72);
    border: 3px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(88, 99, 248, 0.2);
}

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

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

.payment-card-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2em;
}

.payment-card-content {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

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

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

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

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

.payment-card-content button:hover {
    background-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 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: 15px;
        display: block;
        background: rgba(240, 240, 240, 0.72);
        border: 2px solid var(--border-color);
        border-radius: 5px;
        padding: 8px;
    }
    
    .system-table-responsive td {
        text-align: left;
        padding: 8px 8px 8px 45%;
        position: relative;
        border-bottom: 1px solid rgba(88, 99, 248, 0.1);
        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: 600;
        color: var(--primary-color);
        font-family: 'Changa', sans-serif;
        letter-spacing: 0.5px;
    }
    
    .bubble-grid {
        grid-template-columns: 1fr;
    }
}

.system-form input[type="submit"] {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
    display:block;
    width: 100%;
}

