.ciqg-body {
    font-family: 'Arial', sans-serif;
    background: #f5f7fa;
    color: #333;
    
}

/* Full-width container on mobile, keep max-width on desktop */
.ciqg-container {
    width: 100%;
    max-width: 1200px;           /* ← maximum width on large screens */
    margin: 0 auto;              /* ← centers it */
    padding: 0 8px;             /* ← safe side padding on all screens */
    box-sizing: border-box;
}

/* On mobile phones — go full-width, minimal padding */
@media (max-width: 767px) {
    .ciqg-container {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Optional: even tighter on very small phones */
@media (max-width: 480px) {
    .ciqg-container {
    }
}

.ciqg-header-user-info{
    display:flex;
    align-items:left;
    gap:6px;
    font-size:13px;
    flex-wrap:nowrap;
    max-width:100%;
    overflow:hidden;
}

/* Allow elements to shrink */
.ciqg-header-user-info > *{
    flex-shrink:1;
}

/* Prevent buttons from stretching */
.ciqg-header-user-info a{
    white-space:nowrap;
    font-size:13px;
    padding:3px 3px;
}

/* Tablet */
@media (max-width:900px){

    .ciqg-header-user-info{
        gap:3px;
        font-size:13px;
    }

    .ciqg-header-user-info a{
        font-size:12px;
        padding:5px 8px;
    }

}

/* Mobile */
@media (max-width:600px){

    .ciqg-header-user-info{
        gap:6px;
        font-size:9px;
    }

    .ciqg-header-user-info a{
        font-size:9px;
        padding:4px 7px;
    }

    .ciqg-sub-badge{
        font-size:9px;
        padding:3px 7px;
    }

}

.ciqg-tabs {
    display: flex;
    margin-bottom: 20px;
}

.ciqg-tab {
    padding: 12px 24px;
    background: #2c3e50;
    color: white;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
    transition: background 0.3s;
}

.ciqg-tab.active {
    background: #7f8c8d;
}

.ciqg-login-form, .ciqg-signup-form, .ciqg-reset-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ciqg-login-form input, .ciqg-signup-form input, .ciqg-reset-form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ciqg-login-form button, .ciqg-signup-form button, .ciqg-reset-form button {
    width: 100%;
    padding: 12px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.ciqg-login-form button:hover, .ciqg-signup-form button:hover, .ciqg-reset-form button:hover {
    background: #34495e;
}

.ciqg-success-message {
    background: #2ecc71;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.ciqg-error-message {
    background: #e74c3c;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.ciqg-subscription-status.free {
    color: #e74c3c;
}

.ciqg-subscription-status.premium {
    color: #2ecc71;
}

.ciqg-project-list {
    display: grid;
    gap: 20px;
}

.ciqg-project-item {
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ciqg-invoice-editor {
    background: white;
    padding: 20px;
    border-radius: 5px;
}

.ciqg-export-pdf {
    background: #2c3e50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.ciqg-admin-tabs {
    display: flex;
    margin-bottom: 20px;
}

.ciqg-admin-tab {
    padding: 10px 20px;
    background: #2c3e50;
    color: white;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
}

.ciqg-admin-tab.active {
    background: #7f8c8d;
}

.ciqg-admin-table {
    background: white;
    border-radius: 5px;
    overflow: hidden;
}

.ciqg-admin-table th, .ciqg-admin-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}