/**
 * ╔═══════════════════════════════════════════════════════════════╗
 * ║  🎨 DhaMus Application Styles - RESPONSIVE & MODERN           ║
 * ║  © 2026 DhaMus - Created with Heart ❤️                       ║
 * ║  Mobile-First, No Underlines, Consistent Border Radius       ║
 * ╚═══════════════════════════════════════════════════════════════╝
 */

/* === GLOBAL MOBILE-FIRST RESPONSIVE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a, button {
    text-decoration: none !important;
    outline: none;
}

a:hover, a:focus, a:active {
    text-decoration: none !important;
}

/* REMOVE ALL UNDERLINES GLOBALLY */
.dm-table a,
.dm-card a,
nav a,
.dm-btn {
    text-decoration: none !important;
}

/* === RESPONSIVE TEXT SIZES === */
body {
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.6;
}

h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
}

h2 {
    font-size: clamp(1.25rem, 4vw, 2rem);
}

h3 {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
}

/* === RESPONSIVE CONTAINERS === */
.dm-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(15px, 3vw, 40px);
}

/* === RESPONSIVE CARDS === */
.dm-card {
    background: white;
    border-radius: 16px;
    padding: clamp(15px, 3vw, 30px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.dm-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.15);
}

/* === RESPONSIVE BUTTONS - CONSISTENT BORDER RADIUS === */
.dm-btn,
.dm-btn-primary,
.dm-btn-secondary,
.dm-btn-danger,
.dm-btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: clamp(10px, 2vw, 14px) clamp(16px, 3vw, 28px);
    font-size: clamp(13px, 2vw, 15px);
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    outline: none;
    white-space: nowrap;
}

.dm-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.dm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.dm-btn-secondary {
    background: #f8fafc;
    color: #1e293b;
    border: 2px solid #e2e8f0;
}

.dm-btn-secondary:hover {
    background: #e2e8f0;
}

.dm-btn-danger {
    background: #ef4444;
    color: white;
}

.dm-btn-success {
    background: #10b981;
    color: white;
}

.dm-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 10px;
}

/* === RESPONSIVE INPUTS === */
.dm-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: clamp(12px, 2vw, 16px);
    font-size: clamp(14px, 2vw, 15px);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.dm-input:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* === RESPONSIVE TABLE === */
.dm-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dm-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    min-width: 600px;
}

.dm-table thead th {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: clamp(10px, 2vw, 15px);
    text-align: left;
    font-weight: 600;
    font-size: clamp(12px, 2vw, 14px);
    white-space: nowrap;
}

.dm-table thead th:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.dm-table thead th:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.dm-table tbody tr {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.dm-table tbody tr:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dm-table tbody td {
    padding: clamp(10px, 2vw, 15px);
    font-size: clamp(13px, 2vw, 14px);
}

.dm-table tbody tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.dm-table tbody tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* === RESPONSIVE BADGES === */
.dm-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: clamp(4px, 1vw, 6px) clamp(8px, 2vw, 12px);
    border-radius: 20px;
    font-size: clamp(11px, 1.5vw, 12px);
    font-weight: 600;
    white-space: nowrap;
}

.dm-badge-primary { background: #6366f1; color: white; }
.dm-badge-success { background: #10b981; color: white; }
.dm-badge-danger { background: #ef4444; color: white; }
.dm-badge-warning { background: #f59e0b; color: white; }
.dm-badge-secondary { background: #64748b; color: white; }

/* === RESPONSIVE ALERTS === */
.dm-alert {
    padding: clamp(12px, 2vw, 16px) clamp(16px, 3vw, 20px);
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(13px, 2vw, 14px);
}

.dm-alert-success { background: #10b981; color: white; }
.dm-alert-error { background: #ef4444; color: white; }
.dm-alert-warning { background: #f59e0b; color: white; }

/* === RESPONSIVE FORMS === */
.dm-form-group {
    margin-bottom: clamp(16px, 3vw, 24px);
}

.dm-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
    font-size: clamp(13px, 2vw, 14px);
}

.dm-error {
    display: block;
    color: #ef4444;
    font-size: clamp(12px, 1.5vw, 13px);
    margin-top: 6px;
}

.dm-form-actions {
    display: flex;
    gap: clamp(8px, 2vw, 12px);
    flex-wrap: wrap;
    margin-top: clamp(20px, 3vw, 30px);
}

/* === MOBILE RESPONSIVE (max-width: 768px) === */
@media (max-width: 768px) {
    .dm-container {
        padding: 15px;
    }
    
    .dm-card {
        padding: 15px;
        border-radius: 12px;
    }
    
    .dm-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .dm-form-actions {
        flex-direction: column;
    }
    
    .dm-form-actions .dm-btn {
        width: 100%;
    }
    
    .dm-table {
        font-size: 13px;
    }
    
    .dm-table thead th,
    .dm-table tbody td {
        padding: 10px 8px;
    }
    
    .dm-header h1 {
        font-size: 1.5rem;
    }
    
    /* Stack table actions vertically on mobile */
    .dm-table tbody td:last-child > div {
        flex-direction: column;
        gap: 5px;
    }
    
    .dm-table tbody td:last-child .dm-btn-sm {
        width: 100%;
        justify-content: center;
    }
}

/* === VERY SMALL MOBILE (max-width: 480px) === */
@media (max-width: 480px) {
    .dm-container {
        padding: 10px;
    }
    
    .dm-card {
        padding: 12px;
    }
    
    .dm-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .dm-header h1 {
        font-size: 1.25rem;
    }
    
    .dm-table {
        font-size: 12px;
    }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dm-animate-fade-in {
    animation: fadeIn 0.5s ease;
}

.dm-animate-slide-down {
    animation: slideDown 0.5s ease;
}

/* === SVG ICONS CONSISTENT SIZE === */
.dm-icon-sm { width: 16px; height: 16px; }
.dm-icon-md { width: 20px; height: 20px; }
.dm-icon-lg { width: 24px; height: 24px; }
.dm-icon-xl { width: 32px; height: 32px; }

/* === SCROLLBAR STYLING === */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

/* DM_STYLESHEET_SIGNATURE: dm_app_responsive_css_2026_v2 */
