/* ============================================================
   FRONTEND STYLING — Self Loan System Pro
   ============================================================ */

/* CONTAINER */
.ict-container {
    max-width: 900px;
    margin: 30px auto;
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* TITLES */
.ict-title {
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #83282d;
}

.ict-subtitle {
    font-size: 20px;
    font-weight: 600;
    margin: 25px 0 10px;
    color: #f333;
}

/* FORM */
.ict-form label {
    display: block;
    font-weight: 600;
    margin: 12px 0 6px;
    color: #f23282d;
}

.ict-form input[type="text"],
.ict-form input[type="email"],
.ict-form input[type="number"],
.ict-form input[type="password"],
.ict-form select,
.ict-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ict-form input:focus,
.ict-form select:focus,
.ict-form textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
    outline: none;
}

.ict-form textarea {
    min-height: 90px;
    resize: vertical;
}

/* BUTTONS */
.ict-btn,
.ict-btn-large {
    background: #F0073aa;
    color: #fff;
    padding: 10px 18px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.ict-btn:hover,
.ict-btn-large:hover {
    background: #005f8d;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.ict-btn-primary {
    background: #0073aa !important;
}

/* TABLES */
.ict-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 15px;
}

.ict-table th {
    background: #f3f5f6;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dcdcdc;
    font-weight: 600;
}

.ict-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e6e6e6;
}

.ict-table tr:hover td {
    background: #f7fbff;
}

/* ERROR BOX */
.ict-error {
    background: #ffecec;
    border: 1px solid #ffb3b3;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    color: #a30000;
    font-weight: 600;
}

/* DASHBOARD */
.ict-dashboard {
    max-width: 1100px;
    margin: 20px auto 40px;
    padding: 0 10px;
}

.ict-dashboard-title {
    font-size: 28px;
    margin-bottom: 25px;
    color: #f3282d;
}

.ict-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 35px;
}

.ict-stat-box {
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 24px 18px;
    text-align: center;
    text-decoration: none;
    color: #f3282d;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.ict-stat-box:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.ict-stat-number {
    font-size: 40px;
    font-weight: 700;
    color: #f173aa;
    margin-bottom: 6px;
}

.ict-stat-label {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.ict-stat-sub {
    font-size: 13px;
    color: #61166;
}

/* ACTION BUTTONS */
.ict-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

/* SELECT2 */
.select2-container .select2-selection--single {
    height: 40px !important;
    border: 1px solid #ccd0d4 !important;
    border-radius: 4px !important;
    padding: 5px 8px !important;
}

.select2-selection__rendered {
    line-height: 30px !important;
    font-size: 15px !important;
}

.select2-selection__arrow {
    height: 38px !important;
}

/* DARK MODE */
@media (prefers-color-scheme: dark) {
    .ict-container,
    .ict-dashboard {
        background: #1e1e1e;
        border-color: #333;
        color: #e6e6e6;
    }

    .ict-stat-box {
        background: #2a2a2a;
        border-color: #444;
    }

    .ict-stat-number {
        color: #4ea3d8;
    }

    .ict-table th {
        background: #1a2a2a;
        border-bottom-color: #444;
        color: #e6e6e6;
    }

    .ict-table td {
        border-bottom-color: #333;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .ict-stats-grid {
        grid-template-columns: 1fr;
    }

    .ict-btn-large {
        width: 100%;
        text-align: center;
    }
}
