
/* ============================================
   MOBILE RESPONSIVE + PASSWORD TOGGLE STYLES
   Add this to your admin.css or create a new file
   ============================================ */

/* ---- Password Toggle Button ---- */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-wrapper .form-control {
    padding-right: 45px !important;
    width: 100%;
}
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: color 0.2s;
    z-index: 2;
}
.password-toggle:hover {
    color: var(--primary);
}
.password-toggle:focus {
    outline: none;
    color: var(--primary);
}

/* ---- Mobile Navigation ---- */
@media (max-width: 768px) {
    .admin-nav {
        flex-direction: column;
        padding: 0.8rem 1rem !important;
        gap: 0.5rem;
    }
    .admin-nav-brand {
        width: 100%;
        justify-content: space-between;
    }
    .admin-nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0.3rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .admin-nav-links.active {
        display: flex;
    }
    .admin-nav-links a {
        padding: 0.6rem 0.8rem;
        border-radius: 8px;
    }
    .admin-nav-links a:hover, .admin-nav-links a.active {
        background: rgba(255,255,255,0.1);
    }
    .nav-toggle {
        display: flex !important;
    }

    /* Mobile tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .admin-table {
        min-width: 600px;
    }

    /* Mobile grids */
    .form-grid {
        grid-template-columns: 1fr !important;
    }
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .admin-container {
        padding: 0 1rem !important;
        margin: 1.5rem auto !important;
    }
    .admin-section {
        padding: 1rem !important;
    }

    /* Mobile login */
    .admin-login-container {
        padding: 1rem !important;
    }
    .admin-login-card {
        padding: 1.5rem !important;
    }

    /* Mobile profile */
    .profile-grid-mobile {
        grid-template-columns: 1fr !important;
    }

    /* Mobile buttons */
    .btn {
        min-height: 44px;
    }

    /* Mobile form inputs */
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents iOS zoom */
    }

    /* Mobile pagination */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Hamburger menu button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    transition: background 0.2s;
}
.nav-toggle:hover {
    background: rgba(255,255,255,0.1);
}

/* Touch-friendly on all devices */
.btn, .form-control, select, a {
    touch-action: manipulation;
}