@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #0f172a; /* slate-900 */
    background-color: #f8fafc; /* slate-50 */
}

#root {
    min-height: 100vh;
}

/* ========================================
   LAYOUT STYLES
   ======================================== */

.min-h-screen {
    min-height: 100vh;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

/* Header */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0; /* slate-200 */
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.header-container {
     padding: 0 1rem;
    height: 3.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 640px) {
    .header-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .header-container {
        padding: 0 2rem;
    }
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.logo-img {
    height: 2rem;
    width: 2rem;
    border-radius: 0.5rem;
}

.header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b; /* slate-800 */
    letter-spacing: -0.025em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #2563eb; /* blue-600 */
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    background-color: #eff6ff; /* blue-50 */
    text-decoration: none;
    transition: all 0.15s ease;
}

.admin-link:hover {
    color: #1e40af; /* blue-800 */
    background-color: #dbeafe; /* blue-100 */
}

.user-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 1rem;
    border-left: 1px solid #e2e8f0; /* slate-200 */
}

.user-avatar {
    height: 2rem;
    width: 2rem;
    border-radius: 9999px;
    border: 1px solid #e2e8f0; /* slate-200 */
    object-fit: cover;
}

.user-avatar-placeholder {
    height: 2rem;
    width: 2rem;
    border-radius: 9999px;
    background-color: #f1f5f9; /* slate-100 */
    border: 1px solid #e2e8f0; /* slate-200 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b; /* slate-500 */
    font-weight: 500;
    font-size: 0.875rem;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155; /* slate-700 */
}

.logout-btn {
    font-size: 0.875rem;
    color: #64748b; /* slate-500 */
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease;
}

.logout-btn:hover {
    color: #dc2626; /* red-600 */
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 80rem; /* 7xl */
     padding: 3rem 1rem;
    width: 100%;
}

@media (min-width: 640px) {
    .main-content {
        padding: 3rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .main-content {
        padding: 3rem 2rem;
    }
}

/* Footer */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0; /* slate-200 */
    padding: 1rem 0;
}

.footer-container {
      padding: 0 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
    }
}

@media (min-width: 640px) {
    .footer-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .footer-container {
        padding: 0 2rem;
    }
}

.copyright {
    font-size: 0.875rem;
    color: #64748b; /* slate-500 */
}

.footer-links {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

.footer-links a {
    color: #94a3b8; /* slate-400 */
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: #475569; /* slate-600 */
}

/* ========================================
   LOGIN SCREEN STYLES
   ======================================== */

.login-container {
    min-height: 100vh;
    background-color: #f8fafc; /* slate-50 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    max-width: 28rem;
    width: 100%;
    border: 1px solid #e2e8f0; /* slate-200 */
    text-align: center;
}

.login-logo {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    margin: 0 auto 1.5rem auto;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b; /* slate-800 */
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #64748b; /* slate-500 */
    margin-bottom: 2rem;
}

.google-btn {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #cbd5e1; /* slate-300 */
    color: #334155; /* slate-700 */
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: background-color 0.15s ease;
}

.google-btn:hover {
    background-color: #f8fafc; /* slate-50 */
}

.google-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ========================================
   LOADING SPINNER
   ======================================== */

.loading-container {
    min-height: 100vh;
    background-color: #f8fafc; /* slate-50 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 4px solid #2563eb; /* blue-600 */
    border-top-color: transparent;
    border-radius: 9999px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #64748b; /* slate-500 */
    font-weight: 500;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes page-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.45s ease-out forwards;
}

.animate-fade-in-up {
    animation: fade-in-up 0.55s ease-out forwards;
}

.animate-page-in {
    animation: page-in 0.5s ease-out forwards;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.font-sans {
    font-family: 'Inter', sans-serif;
}

.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.text-slate-900 {
    color: #0f172a;
}

.bg-slate-50 {
    background-color: #f8fafc;
}

.text-center {
    text-align: center;
}

.text-red-500 {
    color: #ef4444;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
