/* Custom styles for GOMTB Admin Dashboard */

/* Navigation styles */
.nav-item {
    @apply w-full text-left px-4 py-3 text-gray-700 hover:bg-gray-100 hover:text-gray-900 rounded-md transition-colors duration-200;
}

.nav-item.active {
    @apply bg-orange-100 text-orange-700 border-r-4 border-orange-500;
}

/* Section visibility */
.section {
    display: none;
}

.section.active {
    display: block;
}

/* Table styles */
.table-row:hover {
    background-color: #f9fafb;
}

/* Status badges */
.status-badge {
    @apply px-2 py-1 text-xs font-medium rounded-full;
}

.status-pending {
    @apply bg-yellow-100 text-yellow-800;
}

.status-completed {
    @apply bg-green-100 text-green-800;
}

.status-failed {
    @apply bg-red-100 text-red-800;
}

.status-active {
    @apply bg-blue-100 text-blue-800;
}

.status-inactive {
    @apply bg-gray-100 text-gray-800;
}

/* Card styles */
.card {
    @apply bg-white rounded-lg shadow-sm border border-gray-200 p-6;
}

.card-header {
    @apply border-b border-gray-200 pb-4 mb-4;
}

.card-title {
    @apply text-lg font-semibold text-gray-900;
}

/* Form styles */
.form-group {
    @apply mb-4;
}

.form-label {
    @apply block text-sm font-medium text-gray-700 mb-1;
}

.form-input {
    @apply w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-orange-500 focus:border-orange-500;
}

.form-textarea {
    @apply w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-orange-500 focus:border-orange-500;
    min-height: 100px;
}

.form-select {
    @apply w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-orange-500 focus:border-orange-500;
}

/* Button styles */
.btn {
    @apply px-4 py-2 rounded-md font-medium transition-colors duration-200;
}

.btn-primary {
    @apply bg-orange-600 text-white hover:bg-orange-700;
}

.btn-secondary {
    @apply bg-gray-600 text-white hover:bg-gray-700;
}

.btn-success {
    @apply bg-green-600 text-white hover:bg-green-700;
}

.btn-danger {
    @apply bg-red-600 text-white hover:bg-red-700;
}

.btn-sm {
    @apply px-3 py-1 text-sm;
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Modal styles */
.modal-overlay {
    @apply fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50;
}

.modal-content {
    @apply bg-white rounded-lg shadow-xl max-w-md w-full mx-4;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-item {
        @apply text-sm px-3 py-2;
    }
    
    .card {
        @apply p-4;
    }
    
    .btn {
        @apply px-3 py-2 text-sm;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Toast notifications */
.toast {
    @apply fixed top-4 right-4 z-50 p-4 rounded-lg shadow-lg;
    animation: slideIn 0.3s ease-out;
}

.toast-success {
    @apply bg-green-500 text-white;
}

.toast-error {
    @apply bg-red-500 text-white;
}

.toast-warning {
    @apply bg-yellow-500 text-white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Grid layouts */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

/* Image upload styles */
.upload-area {
    @apply border-2 border-dashed border-gray-300 rounded-lg p-6 text-center;
    transition: border-color 0.2s ease;
}

.upload-area:hover {
    @apply border-orange-400;
}

.upload-area.dragover {
    @apply border-orange-500 bg-orange-50;
}

/* Search and filter styles */
.search-box {
    @apply relative;
}

.search-box input {
    @apply pl-10;
}

.search-box::before {
    content: "🔍";
    @apply absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400;
}

/* Pagination styles */
.pagination {
    @apply flex justify-center items-center space-x-2 mt-6;
}

.pagination button {
    @apply px-3 py-2 border border-gray-300 rounded-md hover:bg-gray-50;
}

.pagination button.active {
    @apply bg-orange-600 text-white border-orange-600;
}

.pagination button:disabled {
    @apply opacity-50 cursor-not-allowed;
}

/* Stats cards */
.stats-card {
    @apply bg-white p-6 rounded-lg shadow-sm border border-gray-200;
}

.stats-card .icon {
    @apply p-3 rounded-full;
}

.stats-card .value {
    @apply text-2xl font-bold;
}

.stats-card .label {
    @apply text-sm text-gray-600;
}

/* Action buttons */
.action-buttons {
    @apply flex space-x-2;
}

.action-btn {
    @apply p-2 rounded-md transition-colors duration-200;
}

.action-btn-edit {
    @apply text-blue-600 hover:bg-blue-50;
}

.action-btn-delete {
    @apply text-red-600 hover:bg-red-50;
}

.action-btn-view {
    @apply text-green-600 hover:bg-green-50;
}

/* Empty state */
.empty-state {
    @apply text-center py-12;
}

.empty-state-icon {
    @apply text-6xl text-gray-300 mb-4;
}

.empty-state-title {
    @apply text-xl font-medium text-gray-900 mb-2;
}

.empty-state-description {
    @apply text-gray-600;
} 