/* ============================================
   WINCEL I.T. SOLUTIONS — Brand Stylesheet
   ============================================ */

:root {
    --navy:      #0a0f2e;
    --navy-mid:  #0d1545;
    --blue:      #1a7fd4;
    --blue-bright: #00aaff;
    --blue-light: #e8f4fd;
    --white:     #ffffff;
    --gray-100:  #f0f4f8;
    --gray-200:  #e5e7eb;
    --gray-400:  #9ca3af;
    --gray-600:  #6b7280;
    --gray-800:  #1f2937;
    --success:   #059669;
    --success-bg:#d1fae5;
    --error:     #dc2626;
    --error-bg:  #fee2e2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: var(--gray-100); min-height: 100vh; }

/* ── HEADER ── */
.w-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0f2060 100%);
    color: white;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--blue-bright);
    min-height: 70px;
}
.w-header-brand { display: flex; align-items: center; gap: 14px; }
.w-header-logo { height: 46px; width: 46px; object-fit: contain; border-radius: 6px; }
.w-header-logo-placeholder {
    height: 46px; width: 46px; background: var(--blue);
    border-radius: 6px; display: flex; align-items: center;
    justify-content: center; font-size: 22px;
}
.w-header-text h1 { font-size: 18px; font-weight: 700; letter-spacing: 0.5px; }
.w-header-text p { font-size: 11px; opacity: 0.7; margin-top: 2px; letter-spacing: 0.3px; }
.w-header-nav { display: flex; gap: 10px; align-items: center; }
.w-header-nav a {
    color: white; text-decoration: none; font-size: 12px; font-weight: 500;
    background: rgba(255,255,255,0.1); padding: 7px 14px; border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15); transition: all 0.2s;
}
.w-header-nav a:hover { background: rgba(0,170,255,0.25); border-color: var(--blue-bright); }
.w-header-nav span { font-size: 12px; opacity: 0.7; }

/* ── CONTAINER ── */
.w-container { max-width: 900px; margin: 0 auto; padding: 36px 20px 60px; }
.w-container-wide { max-width: 1200px; margin: 0 auto; padding: 28px 20px 60px; }

/* ── CARD ── */
.w-card { background: white; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); overflow: hidden; margin-bottom: 24px; }
.w-card-header {
    background: linear-gradient(135deg, var(--navy), #1a3a6e);
    color: white; padding: 18px 26px; font-size: 16px; font-weight: 600;
    border-bottom: 2px solid var(--blue-bright);
    display: flex; align-items: center; gap: 10px;
}
.w-card-body { padding: 26px; }

/* ── BUTTONS ── */
.w-btn { padding: 10px 22px; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-block; font-family: inherit; }
.w-btn-primary { background: linear-gradient(135deg, var(--navy), var(--blue)); color: white; border: 1px solid var(--blue); }
.w-btn-primary:hover { background: linear-gradient(135deg, #0d1545, #1a7fd4); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,170,255,0.3); }
.w-btn-secondary { background: var(--gray-100); color: var(--gray-800); border: 1px solid var(--gray-200); }
.w-btn-secondary:hover { background: var(--gray-200); }
.w-btn-full { width: 100%; text-align: center; padding: 13px; font-size: 15px; }
.w-btn-sm { padding: 6px 14px; font-size: 12px; }

/* ── FORM ── */
.w-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.w-form-group { display: flex; flex-direction: column; gap: 6px; }
.w-form-group.full { grid-column: 1 / -1; }
.w-label { font-size: 12px; font-weight: 600; color: var(--gray-800); text-transform: uppercase; letter-spacing: 0.04em; }
.w-required { color: var(--error); }
.w-input, .w-select, .w-textarea {
    padding: 10px 14px; border: 2px solid var(--gray-200);
    border-radius: 8px; font-size: 14px; font-family: inherit;
    transition: border-color 0.2s; width: 100%; color: var(--gray-800);
}
.w-input:focus, .w-select:focus, .w-textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,127,212,0.1); }
.w-textarea { resize: vertical; min-height: 120px; }

/* ── ALERTS ── */
.w-alert { padding: 14px 18px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; }
.w-alert-success { background: var(--success-bg); border: 1px solid #6ee7b7; color: #065f46; }
.w-alert-error { background: var(--error-bg); border: 1px solid #fca5a5; color: #991b1b; }
.w-alert-info { background: var(--blue-light); border: 1px solid #bfdbfe; color: #1e40af; }

/* ── BADGES ── */
.w-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.w-badge-open     { background: #fee2e2; color: #dc2626; }
.w-badge-progress { background: #fef3c7; color: #92400e; }
.w-badge-resolved { background: #d1fae5; color: #065f46; }
.w-badge-closed   { background: #f3f4f6; color: #374151; }
.w-badge-low      { background: #d1fae5; color: #065f46; }
.w-badge-medium   { background: #fef3c7; color: #92400e; }
.w-badge-high     { background: #fee2e2; color: #991b1b; }
.w-badge-urgent   { background: #ede9fe; color: #5b21b6; }

/* ── STATS ── */
.w-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.w-stat-card { background: white; border-radius: 10px; padding: 18px 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); display: flex; align-items: center; gap: 14px; border-left: 4px solid var(--blue); }
.w-stat-icon { font-size: 28px; }
.w-stat-value { font-size: 26px; font-weight: 700; color: var(--navy); }
.w-stat-label { font-size: 11px; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.04em; }

/* ── TABLE ── */
.w-table-wrapper { overflow-x: auto; }
.w-table { width: 100%; border-collapse: collapse; }
.w-table thead th { background: #f8fafc; padding: 11px 14px; text-align: left; font-size: 11px; font-weight: 600; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid var(--gray-200); }
.w-table tbody tr { border-bottom: 1px solid #f1f5f9; transition: background 0.15s; }
.w-table tbody tr:hover { background: #f8fafc; }
.w-table tbody td { padding: 11px 14px; font-size: 13px; color: var(--gray-800); vertical-align: middle; }

/* ── FOOTER ── */
.w-footer { text-align: center; padding: 24px; color: var(--gray-400); font-size: 12px; border-top: 1px solid var(--gray-200); margin-top: 40px; }
.w-footer strong { color: var(--blue); }

/* ── MODAL ── */
.w-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10,15,46,0.7); z-index: 1000; align-items: center; justify-content: center; }
.w-modal-overlay.active { display: flex; }
.w-modal { background: white; border-radius: 12px; width: 100%; max-width: 540px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow: hidden; }
.w-modal-header { background: linear-gradient(135deg, var(--navy), #1a3a6e); color: white; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--blue-bright); }
.w-modal-header h3 { font-size: 16px; font-weight: 600; }
.w-modal-close { background: none; border: none; color: white; font-size: 20px; cursor: pointer; opacity: 0.8; }
.w-modal-close:hover { opacity: 1; }
.w-modal-body { padding: 24px; }
.w-modal-footer { padding: 16px 24px; background: #f9fafb; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--gray-200); }

@media (max-width: 640px) {
    .w-header { padding: 0 16px; }
    .w-header-text p { display: none; }
    .w-form-grid { grid-template-columns: 1fr; }
    .w-stats-grid { grid-template-columns: 1fr 1fr; }
}