/* Zhandian Admin Dashboard - Local Styles */

/* Reset and Base Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; }

/* Utility Classes */
.bg-gray-50 { background-color: #f9fafb; }
.bg-white { background-color: #ffffff; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-600 { background-color: #2563eb; }
.bg-green-100 { background-color: #dcfce7; }
.bg-red-100 { background-color: #fee2e2; }
.bg-yellow-100 { background-color: #fef3c7; }
.bg-gray-100 { background-color: #f3f4f6; }

.text-gray-800 { color: #1f2937; }
.text-gray-500 { color: #6b7280; }
.text-gray-400 { color: #9ca3af; }
.text-gray-900 { color: #111827; }
.text-blue-600 { color: #2563eb; }
.text-green-800 { color: #166534; }
.text-red-600 { color: #dc2626; }
.text-red-800 { color: #991b1b; }
.text-yellow-800 { color: #92400e; }
.text-white { color: #ffffff; }

/* Layout */
.flex { display: flex; }
.h-screen { height: 100vh; }
.w-64 { width: 16rem; }
.w-full { width: 100%; }

/* Padding and Margins */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }

/* Typography */
.text-xl { font-size: 1.25rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }

/* Borders and Shadows */
.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.btn-primary {
    background-color: #2563eb;
    color: white;
}
.btn-primary:hover {
    background-color: #1d4ed8;
}

/* Forms */
.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}
.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Navigation */
.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #4b5563;
    text-decoration: none;
    border-radius: 0.375rem;
    margin: 0 1.5rem 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
}
.nav-item:hover {
    background-color: #f3f4f6;
    color: #2563eb;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th,
.table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}
.table th {
    font-weight: 600;
    color: #374151;
    background-color: #f9fafb;
}

/* Status badges */
.badge {
    display: inline-flex;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

/* Responsive */
@media (max-width: 768px) {
    .w-64 { width: 100%; position: absolute; z-index: 50; }
    .hidden-mobile { display: none; }
}

/* Font Awesome replacement icons */
.fas::before { 
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}
.fa-globe::before { content: "🌍"; }
.fa-tachometer-alt::before { content: "📊"; }
.fa-folder::before { content: "📁"; }
.fa-spider::before { content: "🕷️"; }
.fa-language::before { content: "🌐"; }
.fa-hammer::before { content: "🔨"; }
.fa-cloud-upload-alt::before { content: "☁️"; }
.fa-cog::before { content: "⚙️"; }
.fa-trash::before { content: "🗑️"; }
.fa-user::before { content: "👤"; }
.fa-sign-out-alt::before { content: "🚪"; }
.fa-plus::before { content: "➕"; }
.fa-bars::before { content: "☰"; }

/* Custom transitions and loading states */
.sidebar-transition { transition: all 0.3s ease; }
.loading { display: none; }
.loading.active { display: block; }

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    padding: 12px 16px;
    border-radius: 8px;
    color: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.toast.show { transform: translateX(0); }
.toast.success { background: #10b981; }
.toast.error { background: #ef4444; }
.toast.info { background: #3b82f6; }