/*
  This version uses standard CSS and is fully compatible with the Tailwind CDN.
  It does not use the @apply directive.
*/

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}

/* --- Navigation --- */
.nav-item {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #9CA3AF; /* gray-400 */
    transition: background-color 0.2s, color 0.2s;
    margin-right: 5px;
}
.nav-item:hover {
    background-color: #374151; /* gray-700 */
    color: #FFFFFF;
}

/* --- Buttons --- */
.btn-primary {
    background-color: #2563EB; /* blue-600 */
    color: #FFFFFF;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease-in-out;
}
.btn-primary:hover {
    background-color: #1D4ED8; /* blue-700 */
    transform: scale(1.05);
}
.btn-primary:disabled {
    background-color: #93C5FD; /* blue-300 */
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #4B5563; /* gray-600 */
    color: #FFFFFF;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease-in-out;
}
.btn-secondary:hover {
    background-color: #374151; /* gray-700 */
    transform: scale(1.05);
}

.btn-danger {
    background-color: #DC2626; /* red-600 */
    color: #FFFFFF;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease-in-out;
}
.btn-danger:hover {
    background-color: #B91C1C; /* red-700 */
    transform: scale(1.05);
}


/* --- Forms and Containers --- */
.auth-form-container {
    max-width: 28rem; /* 448px */
    margin-left: auto;
    margin-right: auto;
    background-color: #FFFFFF;
    padding: 2.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.form-title {
    font-size: 1.875rem; /* 30px */
    line-height: 2.25rem; /* 36px */
    font-weight: 700;
    text-align: center;
    color: #111827; /* gray-900 */
    margin-bottom: 2rem;
}

label {
    display: block;
    color: #374151; /* gray-700 */
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.06);
    appearance: none;
    border: 1px solid #D1D5DB; /* gray-300 */
    border-radius: 0.375rem;
    width: 100%;
    padding: 0.75rem 1rem;
    color: #374151; /* gray-700 */
    line-height: 1.5;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    --tw-ring-color: #3B82F6; /* blue-500 */
    box-shadow: 0 0 0 2px var(--tw-ring-color);
}


/* --- Message Areas --- */
.message-area {
    margin-top: 1rem;
    text-align: center;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.success-message {
    background-color: #D1FAE5; /* green-100 */
    color: #065F46; /* green-800 */
}
.error-message {
    background-color: #FEE2E2; /* red-100 */
    color: #991B1B; /* red-800 */
}

/* --- Dashboard --- */
.camera-item {
    background-color: #FFFFFF;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s ease-in-out;
}
.camera-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* --- View Switching & Animation --- */
.view {
    display: none;
}
.view.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}