/* Custom Styles for HRMS - Modern Design System */

:root {
    /* Primary Colors - Medical Blue Theme */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    /* Accent Colors - Vibrant Teal */
    --accent-50: #f0fdfa;
    --accent-100: #ccfbf1;
    --accent-200: #99f6e4;
    --accent-300: #5eead4;
    --accent-400: #2dd4bf;
    --accent-500: #14b8a6;
    --accent-600: #0d9488;
    --accent-700: #0f766e;
    --accent-800: #115e59;
    --accent-900: #134e4a;

    /* Success Colors */
    --success-500: #10b981;
    --success-600: #059669;

    /* Warning Colors */
    --warning-500: #f59e0b;
    --warning-600: #d97706;

    /* Error Colors */
    --error-500: #ef4444;
    --error-600: #dc2626;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #0ba360 0%, #3cba92 100%);
    --gradient-blue: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --gradient-teal: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Modern Input Styles */
.input-modern {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #1a202c;
    background: #fff;
    transition: all 0.3s ease;
    outline: none;
}

.input-modern:hover {
    border-color: #a0aec0;
    background: #f7fafc;
}

.input-modern:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    background: #fff;
}

.input-modern::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

/* Select specific styling */
select.input-modern {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 44px;
}

/* Date input styling */
input[type="date"].input-modern {
    cursor: pointer;
}

/* Number input styling */
input[type="number"].input-modern {
    -moz-appearance: textfield;
}

input[type="number"].input-modern::-webkit-inner-spin-button,
input[type="number"].input-modern::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* General input transitions */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea,
select {
    transition: all 0.3s ease;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
input[type="time"]:hover,
textarea:hover,
select:hover {
    border-color: #9ca3af;
}

/* Modern Button Styles */
button:active {
    transform: scale(0.98);
}

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
    }
}

/* Modern Card Styles */
.card-modern {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
}

.card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Gradient Buttons */
.btn-gradient-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-gradient-success {
    background: var(--gradient-success);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
}

/* Offline indicator enhanced */
.offline-indicator {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    animation: pulse 2s infinite;
}

/* Status badges */
.badge-active {
    background: var(--gradient-success);
    color: white;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-inactive {
    background: #e5e7eb;
    color: #6b7280;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Digital Signage specific styles */
.signage-header {
    background: var(--gradient-primary);
    padding: 2rem;
    border-radius: 24px;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
    animation: glow 3s infinite;
}

.signage-card {
    background: rgba(30, 41, 59, 0.95);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(148, 163, 184, 0.2);
    animation: fadeIn 0.8s ease;
}

.signage-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.signage-table thead th {
    background: rgba(51, 65, 85, 0.8);
    color: #94a3b8;
    padding: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    font-weight: 700;
}

.signage-table tbody tr {
    background: rgba(51, 65, 85, 0.5);
    transition: all 0.3s ease;
}

.signage-table tbody tr:hover {
    background: rgba(51, 65, 85, 0.8);
    transform: scale(1.01);
}

.signage-table tbody td {
    padding: 1.25rem;
    color: white;
    font-size: 1.125rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.signage-table tbody tr td:first-child {
    border-left: 1px solid rgba(148, 163, 184, 0.1);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.signage-table tbody tr td:last-child {
    border-right: 1px solid rgba(148, 163, 184, 0.1);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .card-modern {
        border-radius: 12px;
    }

    .signage-table tbody td {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}