/* Custom Admin Styles */

/* Button Styles */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    border-width: 1px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    box-shadow: 0 10px 20px -10px;
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    box-shadow: 0 0 0 0;
}

.btn:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.btn-primary {
    border-color: rgb(67 97 238);
    background-color: rgb(67 97 238);
    color: rgb(255 255 255);
    box-shadow-color: #4361ee99;
}

.btn-primary:hover {
    background-color: rgb(55 48 163);
    border-color: rgb(55 48 163);
}

.btn-outline-danger {
    border-color: rgb(239 68 68);
    color: rgb(239 68 68);
    box-shadow: 0 0 0 0;
}

.btn-outline-danger:hover {
    background-color: rgb(239 68 68);
    color: rgb(255 255 255);
}

.btn-outline-primary {
    border-color: rgb(67 97 238);
    color: rgb(67 97 238);
    box-shadow: 0 0 0 0;
}

.btn-outline-primary:hover {
    background-color: rgb(67 97 238);
    color: rgb(255 255 255);
}

/* Panel Styles */
.panel {
    position: relative;
    border-radius: 0.375rem;
    background-color: rgb(255 255 255);
    padding: 1.25rem;
    box-shadow: 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;
}

.dark .panel {
    background-color: rgb(14 23 38);
}

/* Table Styles */
.table-striped {
    width: 100%;
    border-collapse: collapse;
}

.table-striped th,
.table-striped td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(224, 230, 237, 0.4);
}

.dark .table-striped th,
.dark .table-striped td {
    border-bottom-color: rgba(25, 30, 58, 0.4);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.pt-4 {
    padding-top: 1rem;
}

.pb-20 {
    padding-bottom: 5rem;
}

.inline-flex {
    display: inline-flex;
}

.items-center {
    align-items: center;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

/* Dark Mode Enhancements */
.dark .panel {
    background-color: rgb(14 23 38);
}

.dark .btn-primary {
    background-color: rgb(67 97 238);
    border-color: rgb(67 97 238);
}

.dark .btn-outline-primary {
    border-color: rgb(67 97 238);
    color: rgb(67 97 238);
}

.dark .btn-outline-danger {
    border-color: rgb(239 68 68);
    color: rgb(239 68 68);
}

/* Form Input Styles */
.form-input,
.form-textarea {
    width: 100%;
    border-radius: 0.375rem;
    border-width: 1px;
    border-color: rgb(224 230 237);
    background-color: rgb(255 255 255);
    padding: 0.5rem 2.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    color: rgb(14 23 38);
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    border-color: rgb(67 97 238);
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 0;
}

.dark .form-input,
.dark .form-textarea {
    border-color: rgb(23 38 60);
    background-color: rgb(18 30 50);
    color: rgb(136 142 168);
}

.dark .form-input:focus,
.dark .form-textarea:focus {
    border-color: rgb(67 97 238);
}

/* Grid Layout */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gap-6 {
    gap: 1.5rem;
}

/* Responsive Breakpoints */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

@media (min-width: 1280px) {
    .xl\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

/* Spacing Utilities */
.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-5 {
    margin-bottom: 1.25rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

/* Text Utilities */
.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

/* Color Utilities */
.text-gray-700 {
    color: rgb(55 65 81);
}

.text-gray-900 {
    color: rgb(17 24 39);
}

.text-gray-400 {
    color: rgb(156 163 175);
}

.text-gray-500 {
    color: rgb(107 114 128);
}

.text-gray-600 {
    color: rgb(75 85 99);
}

.text-red-400 {
    color: rgb(248 113 113);
}

.text-primary {
    color: rgb(67 97 238);
}

/* Dark Mode Text Colors */
.dark .text-gray-700 {
    color: rgb(229 231 235);
}

.dark .text-gray-900 {
    color: rgb(136 142 168);
}

.dark .text-gray-400 {
    color: rgb(156 163 175);
}

.dark .text-gray-500 {
    color: rgb(156 163 175);
}

.dark .text-gray-600 {
    color: rgb(229 231 235);
}

/* Background Colors */
.bg-white {
    background-color: rgb(255 255 255);
}

.bg-gray-500 {
    background-color: rgb(107 114 128);
}

.bg-opacity-75 {
    --tw-bg-opacity: 0.75;
    background-color: rgb(107 114 128 / var(--tw-bg-opacity));
}

/* Border Colors */
.border-gray-200 {
    border-color: rgb(229 231 235);
}

.border-gray-300 {
    border-color: rgb(209 213 219);
}

.border-gray-600 {
    border-color: rgb(75 85 99);
}

.border-gray-700 {
    border-color: rgb(55 65 81);
}

/* Dark Mode Borders */
.dark .border-gray-200 {
    border-color: rgb(55 65 81);
}

.dark .border-gray-300 {
    border-color: rgb(55 65 81);
}

.dark .border-gray-600 {
    border-color: rgb(75 85 99);
}

.dark .border-gray-700 {
    border-color: rgb(55 65 81);
}

/* Shadow Utilities */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Border Radius */
.rounded-2xl {
    border-radius: 1rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Position Utilities */
.fixed {
    position: fixed;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Z-Index */
.z-50 {
    z-index: 50;
}

/* Display Utilities */
.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

/* Width and Height */
.w-full {
    width: 100%;
}

.max-w-lg {
    max-width: 32rem;
}

.max-w-md {
    max-width: 28rem;
}

.h-screen {
    height: 100vh;
}

.min-h-screen {
    min-height: 100vh;
}

/* Padding and Margin */
.p-6 {
    padding: 1.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.pt-4 {
    padding-top: 1rem;
}

.pb-20 {
    padding-bottom: 5rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.my-8 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

/* Transform */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.15s;
}

.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.15s;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.15s;
}

/* Backdrop Filter */
.backdrop-blur-8 {
    backdrop-filter: blur(8px);
}

/* Animation */
.animate-spin {
    animation: spin 1s linear infinite;
}

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

/* Hover States */
.hover\:text-gray-600:hover {
    color: rgb(75 85 99);
}

.hover\:bg-white\/30:hover {
    background-color: rgb(255 255 255 / 0.3);
}

.hover\:bg-white\/20:hover {
    background-color: rgb(255 255 255 / 0.2);
}

/* Group Hover */
.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Text Primary 100 */
.text-primary-100 {
    color: rgb(255 255 255 / 0.9);
}

/* Flex Shrink */
.flex-shrink-0 {
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 640px) {
    .sm\:block {
        display: block;
    }
    
    .sm\:p-0 {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1280px) {
    .xl\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

