/* ==========================================================================
   Dhilaalo Pro — Components
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--dhilaalo-primary, #111827);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
    color: #fff;
    opacity: 0.92;
}

.btn-ghost {
    background: transparent;
    color: inherit;
    border-color: var(--dhilaalo-border, #e5e7eb);
}

.btn-ghost:hover {
    background: var(--dhilaalo-surface, #f8fafc);
}


/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
    position: relative;
    border: 1px solid var(--dhilaalo-border, #e5e7eb);
    border-radius: 18px;
    background: var(--dhilaalo-card, #fff);
    overflow: hidden;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.07);
}


/* --------------------------------------------------------------------------
   Platform Card
   -------------------------------------------------------------------------- */

.platform-card {
    position: relative;
    display: block;
    min-height: 190px;
    padding: 24px;
    border: 1px solid var(--dhilaalo-border, #e5e7eb);
    border-radius: 20px;
    background: var(--dhilaalo-card, #fff);
    color: inherit;
    text-decoration: none;
    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.platform-card:hover {
    transform: translateY(-4px);
    color: inherit;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.platform-card h2 {
    margin: 16px 0 8px;
    font-size: 20px;
    line-height: 1.2;
}

.platform-card p {
    margin: 0;
    max-width: 300px;
    color: var(--dhilaalo-muted, #6b7280);
    font-size: 14px;
    line-height: 1.6;
}

.platform-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--dhilaalo-surface, #f8fafc);
    font-size: 20px;
}

.card-arrow {
    position: absolute;
    right: 22px;
    bottom: 20px;
    font-size: 20px;
    opacity: 0.55;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.platform-card:hover .card-arrow {
    transform: translateX(4px);
    opacity: 1;
}


/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.dhilaalo-menu-separator {
    height: 1px;
    margin: 10px 4px;
    background: var(--dhilaalo-border, #e5e7eb);
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-width: 20px;
}


/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid var(--dhilaalo-border, #e5e7eb);
    border-radius: 10px;
    background: var(--dhilaalo-card, #fff);
    color: var(--dhilaalo-text, #111827);
    font: inherit;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--dhilaalo-primary, #111827);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}


/* --------------------------------------------------------------------------
   Badge
   -------------------------------------------------------------------------- */

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--dhilaalo-surface, #f3f4f6);
    color: var(--dhilaalo-muted, #6b7280);
    font-size: 11px;
    font-weight: 700;
}


/* --------------------------------------------------------------------------
   Avatar
   -------------------------------------------------------------------------- */

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dhilaalo-surface, #f3f4f6);
    overflow: hidden;
}

.avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* --------------------------------------------------------------------------
   Alerts
   -------------------------------------------------------------------------- */

.alert {
    padding: 14px 16px;
    border: 1px solid var(--dhilaalo-border, #e5e7eb);
    border-radius: 12px;
    font-size: 14px;
}

.alert-success {
    background: #f0fdf4;
}

.alert-error {
    background: #fef2f2;
}

.alert-warning {
    background: #fffbeb;
}

.alert-info {
    background: #eff6ff;
}


/* --------------------------------------------------------------------------
   Loading
   -------------------------------------------------------------------------- */

.is-loading {
    pointer-events: none;
    opacity: 0.6;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: dhilaalo-spin 0.7s linear infinite;
}

@keyframes dhilaalo-spin {
    to {
        transform: rotate(360deg);
    }
}


/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {

    .platform-card {
        min-height: 170px;
        padding: 20px;
    }

    .btn {
        min-height: 42px;
        padding-inline: 15px;
    }
}