/* ==========================================
   DADRENTAL DASHBOARD FULL STYLESHEET
   ========================================== */

/* ---------- Base Layout ---------- */

.drm-dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f1f5f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Sidebar ---------- */

.drm-sidebar {
    width: 260px;
    background: #0f172a;
    color: #ffffff;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
}

.drm-sidebar .profile {
    text-align: center;
    margin-bottom: 32px;
}

.drm-sidebar .profile img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 3px solid #1e293b;
}

.drm-sidebar h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.drm-sidebar p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

/* ---------- Sidebar Nav ---------- */

.drm-sidebar-nav {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drm-sidebar-nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #cbd5e1;
    font-size: 14px;
    transition: all 0.2s ease;
}

.drm-sidebar-nav a:hover {
    background: #1e293b;
    color: #ffffff;
}

.drm-sidebar-nav a.active {
    background: #0f766e;
    color: #ffffff;
    font-weight: 600;
}

/* Badge */
.drm-badge {
    background: #ffffff;
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
}

/* ---------- Main Content ---------- */

.drm-main {
    flex: 1;
    padding: 48px;
}

/* ---------- Page Title ---------- */

.drm-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 32px;
}

/* ---------- Grid Layout ---------- */

.drm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

/* ---------- Stat Cards ---------- */

.drm-stat-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.drm-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.drm-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #0f766e, #14b8a6);
}

.drm-stat-number {
    font-size: 42px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.drm-stat-label {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}

.drm-stat-link {
    font-size: 14px;
    font-weight: 600;
    color: #0f766e;
    text-decoration: none;
}

.drm-stat-link:hover {
    opacity: 0.8;
}

/* ---------- Job / Service Cards ---------- */

.drm-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    transition: all 0.2s ease;
}

.drm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.drm-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.drm-card-meta {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

/* Status Badge */

.drm-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}

.drm-status-open {
    background: #dcfce7;
    color: #166534;
}

.drm-status-pending {
    background: #fef9c3;
    color: #854d0e;
}

.drm-status-closed {
    background: #fee2e2;
    color: #991b1b;
}

/* ---------- Card Actions ---------- */

.drm-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 180px;
}

/* ---------- Buttons ---------- */

.btn-primary {
    background: #0f766e;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #0d5c57;
}

.btn-secondary {
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #e5e7eb;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-danger {
    background: transparent;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.btn-danger:hover {
    background: #fee2e2;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .drm-main {
        padding: 32px;
    }
}

@media (max-width: 768px) {

    .drm-dashboard-wrapper {
        flex-direction: column;
    }

    .drm-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 16px;
    }

    .drm-sidebar .profile {
        display: none;
    }

    .drm-main {
        padding: 24px;
    }

    .drm-card-actions {
        max-width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
}