/* ============================================================
   RESET & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
    scroll-behavior: auto;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f0f4f9;
    color: #1a2f44;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ============================================================
   HEADER
   ============================================================ */
.main-header {
    background: linear-gradient(135deg, #0b1e2e 0%, #1a3a5a 100%);
    color: white;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 12px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: -0.5px;
}

.logo .tagline {
    font-size: 0.75rem;
    color: #8ab3d0;
    display: block;
    margin-top: -2px;
    font-weight: 300;
}

.main-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-btn .nav-icon {
    font-size: 1rem;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: none;
}

.nav-btn.active {
    background: #1e7be0;
    color: white;
    box-shadow: 0 4px 12px rgba(30, 123, 224, 0.3);
}

/* ============================================================
   PAGES
   ============================================================ */
.page {
    display: none;
    padding: 30px 0 60px;
    flex: 1 0 auto;
    width: 100%;
    min-height: 70vh;
    position: relative;
}

.page.active {
    display: block;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0b1e2e;
    margin: 0;
}

.dashboard-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    padding: 6px;
    background: white;
    border: 1px solid #e3edf8;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(11, 30, 46, 0.08);
    flex-shrink: 0;
}

.page-header p {
    color: #6f8aa8;
    font-size: 1rem;
    margin-top: 4px;
}

/* ============================================================
   DASHBOARD STATS
   ============================================================ */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #1e7be0;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stat-card .stat-icon {
    font-size: 2.2rem;
    line-height: 1;
    width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.stat-card .stat-info {
    display: flex;
    flex-direction: column;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #0b1e2e;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.78rem;
    color: #6f8aa8;
    font-weight: 500;
}

.stat-card.stat-active {
    border-left-color: #0b7a3e;
}

.stat-card.stat-expiring {
    border-left-color: #d4a017;
}

.stat-card.stat-expired {
    border-left-color: #dc3545;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 24px 28px;
    transition: none;
}

.card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ============================================================
   TABLE
   ============================================================ */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.table-header h3 {
    font-size: 1.1rem;
    color: #0b1e2e;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.record-count {
    font-size: 0.85rem;
    color: #4a6a8a;
    background: #eef4fb;
    padding: 4px 16px;
    border-radius: 30px;
    font-weight: 500;
}

.table-wrap {
    overflow-x: auto;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    min-width: 600px;
}

thead th {
    background: #e9eff6;
    color: #14283b;
    font-weight: 600;
    padding: 14px 12px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 2px solid #cbd8e8;
}

tbody td {
    padding: 13px 12px;
    border-bottom: 1px solid #eef3f9;
    vertical-align: middle;
}

tbody tr:hover td {
    background: #f6faff;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.badge-active {
    background: #d4edda;
    color: #0a5c2e;
}

.badge-expiring {
    background: #fff3cd;
    color: #7a5d04;
}

.badge-expired {
    background: #f8d7da;
    color: #721c24;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #0b1e2e;
    color: white;
}

.btn-primary:hover {
    background: #1e7be0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 123, 224, 0.25);
}

.btn-secondary {
    background: #e9eff6;
    color: #1a2f44;
}

.btn-secondary:hover {
    background: #d5dee9;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #b02a37;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.25);
}

.delete-btn {
    background: none;
    border: none;
    color: #b91c1c;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 5px 14px;
    border-radius: 30px;
    background: #fee8e8;
    transition: all 0.2s ease;
}

.delete-btn:hover {
    background: #fcd0d0;
    transform: scale(1.05);
}

/* ============================================================
   EDIT & SAVE BUTTONS
   ============================================================ */
.edit-btn {
    background: #d4a017;
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 30px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.edit-btn:hover {
    background: #b8850f;
    transform: scale(1.05);
}

.save-record-btn {
    background: #1e7be0;
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 30px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.save-record-btn:hover {
    background: #0b5ea8;
    transform: scale(1.05);
}

td .btn-group {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

/* ============================================================
   FORM
   ============================================================ */
.form-card {
    padding: 32px 36px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    font-size: 0.82rem;
    color: #1a2f44;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    padding: 10px 14px;
    border: 1.5px solid #d7e0eb;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #fafdff;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e7be0;
    box-shadow: 0 0 0 4px rgba(30, 123, 224, 0.1);
}

.form-group .field-hint {
    font-size: 0.7rem;
    color: #6f8aa8;
    margin-top: 4px;
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    align-items: center;
}

/* ============================================================
   EMAIL FIELD - READONLY & STYLED
   ============================================================ */
.email-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.email-field-wrapper .readonly-email {
    width: 100%;
    padding: 10px 14px;
    padding-right: 44px;
    border: 2px solid #1e7be0;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #eef6ff;
    color: #0b1e2e;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: default;
    transition: all 0.2s ease;
}

.email-field-wrapper .readonly-email:focus {
    outline: none;
    border-color: #1e7be0;
    box-shadow: 0 0 0 4px rgba(30, 123, 224, 0.15);
}

.email-field-wrapper .readonly-email:hover {
    border-color: #0b5ea8;
    background: #e3f0ff;
}

.email-field-wrapper .email-lock-icon {
    position: absolute;
    right: 14px;
    color: #1e7be0;
    font-size: 1rem;
    pointer-events: none;
    opacity: 0.8;
}

/* ============================================================
   FORM - FULL WIDTH DESCRIPTION
   ============================================================ */
.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group textarea {
    padding: 10px 14px;
    border: 1.5px solid #d7e0eb;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #fafdff;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    min-height: 80px;
    width: 100%;
}

.form-group textarea:focus {
    outline: none;
    border-color: #1e7be0;
    box-shadow: 0 0 0 4px rgba(30, 123, 224, 0.1);
}

/* ============================================================
   TABLE - DESCRIPTION COLUMN
   ============================================================ */
td .desc-preview {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    font-size: 0.8rem;
    color: #4a6a8a;
}

td .desc-preview:hover {
    white-space: normal;
    overflow: visible;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty {
    text-align: center;
    padding: 50px 20px;
    color: #6f8aa8;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.empty h3 {
    font-size: 1.2rem;
    color: #1a2f44;
    margin-bottom: 8px;
}

.empty p {
    font-size: 0.95rem;
}

/* ============================================================
   FILTER SECTION
   ============================================================ */
input[type="date"],
input[type="month"] {
    min-height: 48px;
    padding: 12px 14px;
    font-size: 0.95rem;
    width: 100%;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.filter-card {
    margin-bottom: 24px;
    padding: 20px 24px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.82rem;
    color: #1a2f44;
    margin-bottom: 6px;
}

.filter-group select,
.filter-group input {
    padding: 10px 14px;
    border: 1.5px solid #d7e0eb;
    border-radius: 10px;
    font-size: 0.9rem;
    background: #fafdff;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    width: 100%;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #1e7be0;
    box-shadow: 0 0 0 4px rgba(30, 123, 224, 0.1);
}

.filter-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.filter-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 10px 16px;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-card {
    padding: 0;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.9fr);
    gap: 0;
}

.about-main {
    padding: 38px 42px 34px;
}

.about-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 24px;
    background: linear-gradient(135deg, #0b1e2e 0%, #1d4f7a 100%);
    border-radius: 14px;
    color: white;
    border-bottom: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-header:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(11, 30, 46, 0.18);
}

.about-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.company-logo {
    background: white;
    object-fit: contain;
    padding: 8px;
}

.about-header h3 {
    font-size: 1.75rem;
    color: white;
    margin: 0;
}

.about-subtitle {
    color: #b8d4ec;
    font-size: 0.95rem;
    margin: 0;
}

.about-section {
    margin-bottom: 28px;
}

.about-section h4 {
    font-size: 1.05rem;
    color: #0b1e2e;
    margin-bottom: 10px;
}

.about-section p {
    color: #2a4058;
    line-height: 1.8;
}

.about-copy {
    display: grid;
    gap: 12px;
}

.about-copy p {
    margin: 0;
}

.about-intro {
    max-width: 820px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.expertise-item {
    display: grid;
    gap: 6px;
    min-height: 154px;
    padding: 18px;
    background: #f8faff;
    border: 1px solid #e3edf8;
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.expertise-item:hover {
    transform: translateY(-5px);
    border-color: #b9d6f3;
    box-shadow: 0 14px 28px rgba(30, 123, 224, 0.12);
}

.expertise-kicker {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1e7be0;
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
}

.expertise-item strong {
    color: #0b1e2e;
    font-size: 0.98rem;
}

.expertise-item span:last-child {
    color: #4a6682;
    font-size: 0.88rem;
    line-height: 1.55;
}

.system-highlight {
    padding: 22px 24px;
    background: #eef7f2;
    border: 1px solid #cfe8d9;
    border-left: 4px solid #0b7a3e;
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.system-highlight:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(11, 122, 62, 0.12);
}

.highlight-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #0b7a3e;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8faff;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1a2f44;
}

.feature-icon {
    font-size: 1.1rem;
}

.alert-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.alert-list li {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8faff;
}

.alert-badge {
    font-size: 1.2rem;
}

.alert-note {
    background: #eef4fb;
    padding: 12px 16px;
    border-radius: 8px;
    color: #1a2f44;
    font-size: 0.9rem;
}

/* ============================================================
   ABOUT SIDEBAR
   ============================================================ */
.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 38px 34px;
    background: #f8faff;
    border-left: 1px solid #e3edf8;
}

.developer-card {
    background: white;
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    border: 1px solid #e9eff7;
    box-shadow: 0 8px 28px rgba(11, 30, 46, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.developer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(11, 30, 46, 0.14);
}

.developer-card h4 {
    font-size: 0.9rem;
    color: #6f8aa8;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.developer-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 10px 0 14px;
    object-fit: cover;
    object-position: center;
    border: 5px solid #e9eff7;
    box-shadow: 0 14px 30px rgba(11, 30, 46, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.developer-card:hover .developer-avatar {
    transform: scale(1.04);
    border-color: #b8d4ec;
}

.developer-card h5 {
    font-size: 1.1rem;
    color: #0b1e2e;
    margin: 4px 0;
}

.developer-title {
    color: #6f8aa8;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.developer-details {
    text-align: left;
    margin: 12px 0;
}

.detail-item {
    padding: 6px 0;
    font-size: 0.85rem;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    border-bottom: 1px solid #e9eff7;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: #6f8aa8;
}

.detail-item a {
    color: #1e7be0;
    text-decoration: none;
}

.detail-item a:hover {
    text-decoration: underline;
}

.developer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link.email {
    background: #e9eff7;
    color: #1e7be0;
}
.social-link.phone {
    background: #e9eff7;
    color: #0b7a3e;
}
.social-link.whatsapp {
    background: #e9eff7;
    color: #25d366;
}
.social-link.github {
    background: #e9eff7;
    color: #0b1e2e;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tech-card {
    background: white;
    border-radius: 14px;
    padding: 20px 24px;
    border: 1px solid #e9eff7;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tech-card:hover,
.version-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(11, 30, 46, 0.1);
}

.tech-card h4 {
    font-size: 0.9rem;
    color: #6f8aa8;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    padding: 6px 12px;
    background: #e9eff7;
    border-radius: 999px;
    font-size: 0.78rem;
    color: #1a2f44;
    font-weight: 500;
}

.version-card {
    background: white;
    border-radius: 14px;
    padding: 20px 24px;
    border: 1px solid #e9eff7;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.version-card h4 {
    font-size: 0.9rem;
    color: #6f8aa8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.version-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0b1e2e;
}

.version-date {
    color: #6f8aa8;
    font-size: 0.85rem;
}

.about-footer {
    text-align: center;
    padding: 22px 28px;
    margin-top: 0;
    border-top: 1px solid #e9eff7;
    background: white;
    color: #6f8aa8;
    font-size: 0.9rem;
}

.footer-motto {
    font-size: 0.85rem;
    margin-top: 4px;
    color: #8a9bb0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer {
    background: #0b1e2e;
    color: rgba(255, 255, 255, 0.7);
    padding: 20px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1rem;
    color: white;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-nav-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.footer-nav-btn:hover {
    color: white;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-width: 420px;
    animation: slideIn 0.3s ease;
}

.toast-success {
    background: #0b7a3e;
}

.toast-error {
    background: #dc3545;
}

.toast-info {
    background: #1e7be0;
}

/* ============================================================
   RESPONSIVE - MOBILE FIRST
   ============================================================ */

/* Tablet & Small Desktop */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-sidebar {
        border-left: none;
        border-top: 1px solid #e3edf8;
    }
}

/* Mobile (SIMU) - 2x2 grid */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 18px;
    }

    .logo {
        justify-content: center;
    }

    .main-nav {
        justify-content: center;
        gap: 8px;
    }

    .nav-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
        min-width: 110px;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px 18px;
        gap: 12px;
    }

    .stat-card .stat-icon {
        font-size: 1.6rem;
        width: 40px;
    }

    .stat-card .stat-number {
        font-size: 1.4rem;
    }

    .stat-card .stat-label {
        font-size: 0.65rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .about-card {
        padding: 0;
    }

    .about-main,
    .about-sidebar {
        padding: 24px 20px;
    }

    .expertise-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .expertise-item {
        min-height: 148px;
        padding: 14px 12px;
    }

    .expertise-item strong {
        font-size: 0.9rem;
    }

    .expertise-item span:last-child {
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .table-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .table-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }

    .table-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .filter-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .filter-actions {
        grid-column: 1 / -1;
        flex-direction: row;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .about-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .developer-avatar {
        width: 138px;
        height: 138px;
    }
}

/* Very Small Phones (≤400px) */
@media (max-width: 400px) {
    .container {
        padding: 0 16px;
    }

    input[type="date"],
    input[type="month"] {
        font-size: 0.92rem;
        padding: 12px 12px;
        min-height: 46px;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-card {
        padding: 12px 14px;
        gap: 10px;
    }

    .stat-card .stat-icon {
        font-size: 1.3rem;
        width: 32px;
    }

    .stat-card .stat-number {
        font-size: 1.2rem;
    }

    .stat-card .stat-label {
        font-size: 0.55rem;
    }

    .page-header h2 {
        font-size: 1.4rem;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    .card,
    .form-card,
    .about-card {
        padding: 18px 16px;
    }

    .about-card {
        padding: 0;
    }

    .about-main,
    .about-sidebar {
        padding: 18px 16px;
    }

    .about-header {
        padding: 20px 16px;
    }

    .about-header h3 {
        font-size: 1.45rem;
    }

    .developer-avatar {
        width: 124px;
        height: 124px;
    }

    .expertise-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .expertise-item {
        min-height: 142px;
        padding: 12px 10px;
    }

    .expertise-kicker {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }

    .expertise-item strong {
        font-size: 0.82rem;
    }

    .expertise-item span:last-child {
        font-size: 0.72rem;
    }

    .table-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .table-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .table-actions .btn {
        width: 100%;
        justify-content: center;
    }

    input[type="date"],
    input[type="month"] {
        font-size: 0.92rem;
        padding: 12px 12px;
        min-height: 46px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions .btn {
        width: 100%;
    }

    .about-header {
        flex-direction: column;
        text-align: center;
    }

    .developer-details .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .email-field-wrapper .readonly-email {
        font-size: 0.8rem;
        padding: 8px 12px;
        padding-right: 38px;
    }
    
    .email-field-wrapper .email-lock-icon {
        font-size: 0.8rem;
        right: 12px;
    }

    .edit-btn,
    .save-record-btn,
    .delete-btn {
        font-size: 0.65rem;
        padding: 4px 8px;
    }
    
    td .btn-group {
        flex-direction: column;
        gap: 3px;
    }
}
