/* Standardized Admin Styles - Consistent design system for all admin pages */

/* Custom Tailwind color palette for admin */
:root {
    --tama-primary: #2563eb;
    --tama-secondary: #f59e0b;
    --tama-success: #10b981;
    --tama-danger: #ef4444;
    --tama-warning: #f59e0b;
    --tama-info: #06b6d4;
    --tama-dark: #1f2937;
    --tama-gray: #6b7280;
}

/* Base Admin Layout */
body.admin-layout {
    background-color: #f9fafb;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* Admin Cards */
.admin-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.admin-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.admin-card-body {
    padding: 1.5rem;
}

.admin-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

/* Stat Cards */
.stat-card {
    padding: 1.5rem;
}

.stat-icon {
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 600;
    color: #111827;
}

.stat-label {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #4b5563;
}

.stat-change {
    font-size: 0.75rem;
    line-height: 1rem;
    color: #6b7280;
}

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

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-secondary {
    background-color: #4b5563;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.btn-secondary:hover {
    background-color: #374151;
}

.btn-success {
    background-color: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-warning {
    background-color: #f59e0b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.btn-warning:hover {
    background-color: #d97706;
}

.btn-outline {
    border: 1px solid #d1d5db;
    color: #374151;
    background-color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.btn-outline:hover {
    background-color: #f9fafb;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.btn-icon {
    padding: 0.5rem;
    border-radius: 0.5rem;
}

/* Form Elements */
.admin-form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.admin-form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.admin-form-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    font-size: 0.875rem;
    line-height: 1.25rem;
    background-color: white;
}

.admin-form-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.admin-form-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    font-size: 0.875rem;
    line-height: 1.25rem;
    resize: vertical;
}

.admin-form-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.admin-form-label {
    display: block;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.admin-form-help {
    font-size: 0.75rem;
    line-height: 1rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.admin-form-error {
    font-size: 0.75rem;
    line-height: 1rem;
    color: #dc2626;
    margin-top: 0.25rem;
}

/* Tables */
.admin-table {
    min-width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background-color: #f9fafb;
}

.admin-table th {
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table td {
    padding: 1rem 1.5rem;
    white-space: nowrap;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #111827;
    border-bottom: 1px solid #f3f4f6;
}

.admin-table tbody tr:hover {
    background-color: #f9fafb;
}

.admin-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
}

.badge-primary {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-secondary {
    background-color: #f3f4f6;
    color: #1f2937;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-info {
    background-color: #cffafe;
    color: #155e75;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.375rem;
}

.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-warning {
    background-color: #fffbeb;
    border: 1px solid #fed7aa;
    color: #92400e;
}

.alert-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* Loading States */
.loading-spinner {
    animation: spin 1s linear infinite;
    border-radius: 50%;
    height: 2rem;
    width: 2rem;
    border: 2px solid transparent;
    border-top: 2px solid #2563eb;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.loading-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Responsive Utilities */
.container-admin {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-admin {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-admin {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.content-admin {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Grid Layouts */
.admin-grid-1 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .admin-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.admin-grid-3 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .admin-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .admin-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.admin-grid-4 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .admin-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .admin-grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.admin-grid-6 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .admin-grid-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .admin-grid-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .admin-grid-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* Animations */
.fade-in {
    transition: opacity 0.3s ease-in-out;
}

.slide-in {
    transition: transform 0.3s ease-in-out;
}

.scale-in {
    transition: transform 0.3s ease-in-out;
}

/* Status Indicators */
.status-online {
    background-color: #10b981;
}

.status-offline {
    background-color: #9ca3af;
}

.status-away {
    background-color: #f59e0b;
}

.status-busy {
    background-color: #ef4444;
}

/* Mobile-First Responsive Design */
@media (max-width: 640px) {
    .admin-card {
        margin-left: 1rem;
        margin-right: 1rem;
        border-radius: 0.5rem;
    }
    
    .container-admin {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .admin-table {
        font-size: 0.75rem;
        line-height: 1rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.75rem;
    }
}

/* Tablet Styles */
@media (min-width: 641px) and (max-width: 1024px) {
    .admin-grid-tablet-2 {
        @apply grid-cols-2;
    }
    
    .admin-grid-tablet-3 {
        @apply grid-cols-3;
    }
}

/* Desktop Styles */
@media (min-width: 1025px) {
    .admin-sidebar {
        @apply w-64;
    }
    
    .admin-main-content {
        @apply ml-64;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .admin-card {
        @apply shadow-none border border-gray-300;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-success,
    .btn-danger {
        @apply border border-gray-400 bg-white text-black;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    .dark-mode {
        /* Dark mode styles can be added here when needed */
    }
}

/* Focus Styles for Accessibility */
.focus-visible {
    @apply focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2;
}

/* Transitions */
.transition-all {
    @apply transition-all duration-200 ease-in-out;
}

.transition-colors {
    @apply transition-colors duration-200 ease-in-out;
}

.transition-transform {
    @apply transition-transform duration-200 ease-in-out;
}

/* Utility Classes */
.shadow-soft {
    box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
}

.border-dashed-2 {
    border-style: dashed;
    border-width: 2px;
}

.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 20px 20px;
}

/* Custom Scrollbars */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    @apply bg-gray-100 rounded;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    @apply bg-gray-400 rounded;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    @apply bg-gray-500;
}

/* Responsive Text */
.text-responsive-xs {
    @apply text-xs sm:text-sm;
}

.text-responsive-sm {
    @apply text-sm sm:text-base;
}

.text-responsive-base {
    @apply text-base sm:text-lg;
}

.text-responsive-lg {
    @apply text-lg sm:text-xl;
}

.text-responsive-xl {
    @apply text-xl sm:text-2xl;
}

/* Custom Scrollbars */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    @apply bg-gray-100 rounded;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    @apply bg-gray-400 rounded;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    @apply bg-gray-500;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .admin-card {
        @apply shadow-none border border-gray-300;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-success,
    .btn-danger {
        @apply border border-gray-400 bg-white text-black;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    .dark-mode {
        /* Dark mode styles can be added here when needed */
    }
}

/* Focus Styles for Accessibility */
.focus-visible {
    @apply focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2;
}

/* Transitions */
.transition-all {
    @apply transition-all duration-200 ease-in-out;
}

.transition-colors {
    @apply transition-colors duration-200 ease-in-out;
}

.transition-transform {
    @apply transition-transform duration-200 ease-in-out;
}

/* Utility Classes */
.shadow-soft {
    box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
}

.border-dashed-2 {
    border-style: dashed;
    border-width: 2px;
}

.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 20px 20px;
}

/* Mobile-First Responsive Design */
@media (max-width: 640px) {
    .admin-card {
        @apply mx-4 rounded-lg;
    }
    
    .container-admin {
        @apply px-4;
    }
    
    .admin-table {
        @apply text-xs;
    }
    
    .admin-table th,
    .admin-table td {
        @apply px-3 py-2;
    }
}

/* Tablet Styles */
@media (min-width: 641px) and (max-width: 1024px) {
    .admin-grid-tablet-2 {
        @apply grid-cols-2;
    }
    
    .admin-grid-tablet-3 {
        @apply grid-cols-3;
    }
}

/* Desktop Styles */
@media (min-width: 1025px) {
    .admin-sidebar {
        @apply w-64;
    }
    
    .admin-main-content {
        @apply ml-64;
    }
} 