﻿/* Theme Colors */
:root {
  --primary: #2563eb;      /* Blue 600 */
  --primary-focus: #1d4ed8; /* Blue 700 */
  --primary-content: #ffffff;
  --secondary: #475569;    /* Slate 600 */
  --accent: #0ea5e9;       /* Sky 500 */
  --neutral: #1e293b;      /* Slate 800 */
  --base-100: #f1f5f9;    /* Slate 100 */
  --base-200: #e2e8f0;    /* Slate 200 */
  --base-300: #cbd5e1;    /* Slate 300 */
  --success: #22c55e;     /* Green 500 */
  --warning: #f59e0b;     /* Amber 500 */ 
  --error: #ef4444;       /* Red 500 */

  /* Custom Properties */
  --header-height: 4rem;
  --footer-height: 3rem;
}
:root {
    --primary: #2563eb;
    --primary-focus: #1d4ed8;
    --primary-content: #ffffff;
    --secondary: #475569;
    --accent: #0ea5e9;
    --neutral: #1e293b;
    --base-100: #f1f5f9;
    --base-200: #e2e8f0;
    --base-300: #cbd5e1;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background: #e2e8f0 linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)) fixed center;
}

.navbar {
    background-color: var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 40px;
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-content);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover:after {
    width: 80%;
}

.demo-banner {
    background: linear-gradient(90deg, var(--warning) 0%, #f97316 100%);
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.page-content {
    flex: 1;
}

footer {
    background-color: var(--neutral);
    color: white;
    padding: 1rem 0;
    margin-top: auto;
}

.dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--neutral);
        z-index: 50;
        padding: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .mobile-menu.active {
        transform: translateX(0);
    }
} 

/* Card Styles */
.card {
  @apply bg-white rounded-lg shadow-lg transition-all duration-300;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Button Styles */
.btn {
  @apply font-medium transition-all duration-300;
}

.btn-primary {
  @apply bg-primary hover:bg-primary-focus text-white;
}

.btn-secondary {
  @apply bg-secondary hover:bg-secondary-focus text-white;
}

/* Form Controls */
.input, .select, .textarea {
  @apply border-2 border-base-200 rounded-lg transition-all duration-300;
}

.input:focus, .select:focus, .textarea:focus {
  @apply border-primary outline-none ring-2 ring-primary/20;
}

/* Table Styles */
.table {
  @apply w-full text-left border-collapse;
}

.table th {
  @apply bg-base-200 px-4 py-2 font-medium;
}

.table td {
  @apply px-4 py-2 border-b border-base-200;
}

/* Navigation */
.navbar {
  @apply bg-white/90 backdrop-blur-md shadow-md sticky top-0 z-50;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    @apply px-4;
  }
}

/* Loading States */
.loading {
  @apply animate-pulse bg-base-200;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--base-100);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.img-item:hover{
    background: #ddd;
}
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    min-height: 100vh;
}
.card {
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: none;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.card-body {
    padding: 1.5rem;
}
.btn {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    font-weight: 500;
}
.btn-primary {
    background-color: #4f46e5;
    border-color: #4f46e5;
}
.btn-primary:hover {
    background-color: #4338ca;
    border-color: #4338ca;
}
.btn-secondary {
    background-color: #6b7280;
    border-color: #6b7280;
}
.btn-secondary:hover {
    background-color: #4b5563;
    border-color: #4b5563;
}
.btn-error {
    background-color: #ef4444;
    border-color: #ef4444;
}
.btn-error:hover {
    background-color: #dc2626;
    border-color: #dc2626;
}
.input, .select, .textarea {
    border-radius: 0.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.input:focus, .select:focus, .textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}
.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
}
.table th {
    background-color: #f3f4f6;
    color: #374151;
    font-weight: 600;
    padding: 0.75rem 1rem;
}
.table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.text-success {
    color: #10b981;
}
.text-error, .text-danger {
    color: #ef4444;
}
.img-fluid {
    max-width: 100%;
    height: auto;
    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);
}
.file-input {
    padding: 0.5rem;
    background-color: #f9fafb;
}
.date-picker {
    background-color: #fff;
}
.pagination {
    margin: 0;
    display: flex;
    justify-content: center;
}
.pagination li {
    margin: 0 5px;
}
.bg-warranty {
    background-image: url('https://images.unsplash.com/photo-1581092921461-39b9d08a9b21?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
}
.bg-warranty::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 0;
}
.warranty-content {
    position: relative;
    z-index: 1;
}