/* Merchant Theme - Clean and Simple */

/* Dark mode support */
.dark {
    color-scheme: dark;
}

/* Ensure proper dark mode application */
html.dark {
    color-scheme: dark;
}

html.dark body {
    background-color: #111827;
    color: #f9fafb;
}

/* Merchant Form Controls */
.merchant-form-group {
    margin-bottom: 1.5rem;
}

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

.dark .merchant-form-label {
    color: #d1d5db;
}

.merchant-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-left: 2.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #111827;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.merchant-form-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background-color: #ffffff;
}

.merchant-form-input:hover {
    border-color: #d1d5db;
}

.merchant-form-input::placeholder {
    color: #9ca3af;
}

.dark .merchant-form-input {
    background-color: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.dark .merchant-form-input:focus {
    border-color: #10b981;
    background-color: #374151;
}

.dark .merchant-form-input:hover {
    border-color: #6b7280;
}

.dark .merchant-form-input::placeholder {
    color: #9ca3af;
}

.merchant-form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.merchant-form-input.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.merchant-form-error {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #ef4444;
    line-height: 1rem;
}

.dark .merchant-form-error {
    color: #f87171;
}

.merchant-form-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.merchant-form-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    border: 2px solid #d1d5db;
    border-radius: 0.25rem;
    background-color: #ffffff;
    color: #10b981;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.merchant-form-checkbox input[type="checkbox"]:checked {
    background-color: #10b981;
    border-color: #10b981;
}

.merchant-form-checkbox input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.dark .merchant-form-checkbox input[type="checkbox"] {
    background-color: #374151;
    border-color: #6b7280;
}

.dark .merchant-form-checkbox input[type="checkbox"]:checked {
    background-color: #10b981;
    border-color: #10b981;
}

/* Merchant Form Sections */
.merchant-form-section {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.dark .merchant-form-section {
    background-color: #1f2937;
    border-color: #374151;
}

.merchant-form-section-title {
    display: flex;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f3f4f6;
}

.dark .merchant-form-section-title {
    color: #f9fafb;
    border-bottom-color: #374151;
}

.merchant-form-section-title i {
    margin-right: 0.75rem;
    color: #10b981;
    font-size: 1.25rem;
}

/* Merchant Form Grid */
.merchant-form-grid {
    display: grid;
    gap: 1.5rem;
}

.merchant-form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .merchant-form-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Merchant Form Select */
.merchant-form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-left: 2.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #111827;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    appearance: none;
}

.merchant-form-select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background-color: #ffffff;
}

.merchant-form-select:hover {
    border-color: #d1d5db;
}

.dark .merchant-form-select {
    background-color: #374151;
    border-color: #4b5563;
    color: #f9fafb;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

.dark .merchant-form-select:focus {
    border-color: #10b981;
    background-color: #374151;
}

.dark .merchant-form-select:hover {
    border-color: #6b7280;
}

.merchant-form-select.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.merchant-form-select.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Merchant Form Textarea */
.merchant-form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #111827;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    resize: vertical;
    min-height: 6rem;
}

.merchant-form-textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background-color: #ffffff;
}

.merchant-form-textarea:hover {
    border-color: #d1d5db;
}

.merchant-form-textarea::placeholder {
    color: #9ca3af;
}

.dark .merchant-form-textarea {
    background-color: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.dark .merchant-form-textarea:focus {
    border-color: #10b981;
    background-color: #374151;
}

.dark .merchant-form-textarea:hover {
    border-color: #6b7280;
}

.dark .merchant-form-textarea::placeholder {
    color: #9ca3af;
}

.merchant-form-textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.merchant-form-textarea.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Merchant Alert Styles */
.merchant-alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
}

.merchant-alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.dark .merchant-alert-success {
    background-color: #064e3b;
    border-color: #065f46;
    color: #6ee7b7;
}

.merchant-alert-error {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.dark .merchant-alert-error {
    background-color: #450a0a;
    border-color: #7f1d1d;
    color: #fca5a5;
}

.merchant-alert i {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.merchant-alert-success i {
    color: #16a34a;
}

.dark .merchant-alert-success i {
    color: #22c55e;
}

.merchant-alert-error i {
    color: #dc2626;
}

.dark .merchant-alert-error i {
    color: #ef4444;
}

.merchant-alert h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.merchant-alert ul {
    margin-top: 0.5rem;
}

.merchant-alert li {
    margin-bottom: 0.25rem;
}

/* Merchant Button Styles */
.merchant-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.merchant-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.merchant-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.merchant-btn-primary {
    background-color: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.merchant-btn-primary:hover {
    background-color: #059669;
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.merchant-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.merchant-btn-secondary {
    background-color: #6b7280;
    color: #ffffff;
    border-color: #6b7280;
}

.merchant-btn-secondary:hover {
    background-color: #4b5563;
    border-color: #4b5563;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.merchant-btn-outline {
    background-color: transparent;
    color: #6b7280;
    border-color: #d1d5db;
}

.merchant-btn-outline:hover {
    background-color: #f9fafb;
    color: #374151;
    border-color: #9ca3af;
}

.dark .merchant-btn-outline {
    color: #9ca3af;
    border-color: #4b5563;
}

.dark .merchant-btn-outline:hover {
    background-color: #374151;
    color: #f9fafb;
    border-color: #6b7280;
}

/* Merchant Stats Card */
.merchant-stats-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease-in-out;
}

.dark .merchant-stats-card {
    background-color: #1f2937;
    border-color: #374151;
}

.merchant-stats-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

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

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

.dark .merchant-badge-info {
    background-color: #1e3a8a;
    color: #93c5fd;
}

.merchant-badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.dark .merchant-badge-success {
    background-color: #064e3b;
    color: #6ee7b7;
}

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

.dark .merchant-badge-warning {
    background-color: #451a03;
    color: #fbbf24;
}

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

.dark .merchant-badge-danger {
    background-color: #450a0a;
    color: #fca5a5;
}

/* Merchant Button Small */
.merchant-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    line-height: 1rem;
}

/* Sidebar styles */
.sidebar-container {
    transform: translateX(-100%);
}

@media (min-width: 1024px) {
    .sidebar-container {
        transform: translateX(0);
    }
}

.sidebar-container {
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
}

/* Main content transition */
.main-content {
    transition: margin-left 0.3s ease-in-out;
}

/* Main page content */
.main-page {
    padding: 2rem;
    min-height: calc(100vh - 4rem);
}

@media (max-width: 768px) {
    .main-page {
        padding: 1rem;
    }
}

/* Fixed Header styles */
.header {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header-content {
    max-width: 100%;
}

/* Header button styles */
.header-btn {
    @apply flex items-center justify-center transition-all duration-200;
}

/* Notification badge */
.notification-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Profile menu styles */
.profile-menu {
    transform-origin: top right;
    transition: all 0.2s ease-in-out;
}

.profile-menu.show {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Sidebar Navigation */
.sidebar-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-nav-list > * {
    margin-bottom: 0;
}

/* Sidebar dropdown styles */
.sidebar-dropdown {
    position: relative;
}

.sidebar-dropdown-menu {
    margin-left: 1rem;
    margin-top: 0.5rem;
    border-left: 2px solid #e5e7eb;
    padding-left: 1rem;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    display: block;
}

.dark .sidebar-dropdown-menu {
    border-left-color: #374151;
}

.sidebar-dropdown-menu.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Sidebar submenu styles */
.sidebar-submenu {
    margin-bottom: 1rem;
}

.sidebar-submenu-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    margin: 0.25rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dark .sidebar-submenu-header {
    color: #9ca3af;
}

.sidebar-submenu-header i {
    width: 1rem;
    text-align: center;
    margin-right: 0.5rem;
    color: #9ca3af;
}

.dark .sidebar-submenu-header i {
    color: #6b7280;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #6b7280;
    text-decoration: none;
    border-radius: 0.5rem;
    margin: 0.125rem 0;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
}

.sidebar-link:hover {
    background-color: #f3f4f6;
    color: #374151;
    transform: translateX(2px);
}

.dark .sidebar-link {
    color: #9ca3af;
}

.dark .sidebar-link:hover {
    background-color: #374151;
    color: #f9fafb;
}

.sidebar-link.active {
    background-color: #dcfce7;
    color: #166534;
    font-weight: 600;
}

.dark .sidebar-link.active {
    background-color: #064e3b;
    color: #6ee7b7;
}

.sidebar-link i {
    width: 1.25rem;
    text-align: center;
    margin-right: 0.75rem;
    transition: all 0.2s ease-in-out;
}

.sidebar-link:hover i {
    transform: scale(1.1);
}

.sidebar-dropdown button.sidebar-link {
    width: 100%;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.sidebar-dropdown button.sidebar-link:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.sidebar-dropdown button.sidebar-link.active {
    background-color: #dcfce7;
    color: #166534;
}

.dark .sidebar-dropdown button.sidebar-link {
    color: #9ca3af;
}

.dark .sidebar-dropdown button.sidebar-link:hover {
    background-color: #374151;
    color: #f9fafb;
}

.dark .sidebar-dropdown button.sidebar-link.active {
    background-color: #064e3b;
    color: #6ee7b7;
}

.sidebar-dropdown-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: #6b7280;
    text-decoration: none;
    border-radius: 0.375rem;
    margin: 0.125rem 0;
    transition: all 0.2s ease-in-out;
    font-size: 0.875rem;
}

.sidebar-dropdown-link:hover {
    background-color: #f3f4f6;
    color: #374151;
    transform: translateX(2px);
}

.dark .sidebar-dropdown-link {
    color: #9ca3af;
}

.dark .sidebar-dropdown-link:hover {
    background-color: #374151;
    color: #f9fafb;
}

.sidebar-dropdown-link.active {
    background-color: #dcfce7;
    color: #166534;
    font-weight: 600;
}

.dark .sidebar-dropdown-link.active {
    background-color: #064e3b;
    color: #6ee7b7;
}

.sidebar-dropdown-link i {
    width: 1rem;
    text-align: center;
    margin-right: 0.5rem;
    transition: all 0.2s ease-in-out;
}

.sidebar-dropdown-link:hover i {
    transform: scale(1.1);
}

.profile-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.sidebar-overlay {
    transition: opacity 0.3s ease-in-out;
}

/* Form styles */
.form-input, .form-select, .form-textarea {
    @apply w-full px-4 py-3 border-2 border-gray-200 dark:border-gray-600 rounded-lg shadow-sm placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-green-500 focus:border-green-500 sm:text-sm transition-all duration-200 bg-white dark:bg-gray-700 text-gray-900 dark:text-white;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    @apply ring-2 ring-green-500 border-green-500;
}

.form-input:hover, .form-select:hover, .form-textarea:hover {
    @apply border-gray-300 dark:border-gray-500;
}

.form-input:disabled, .form-select:disabled, .form-textarea:disabled {
    @apply opacity-50 cursor-not-allowed;
}

.form-input.error, .form-select.error, .form-textarea.error {
    @apply border-red-500 focus:ring-red-500 focus:border-red-500;
}

.form-input.success, .form-select.success, .form-textarea.success {
    @apply border-green-500 focus:ring-green-500 focus:border-green-500;
}

/* Button styles */
.btn {
    @apply inline-flex items-center justify-center px-4 py-2 border border-transparent rounded-lg text-sm font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2;
}

.btn:focus {
    @apply ring-2 ring-offset-2;
}

.btn-primary {
    @apply bg-green-600 text-white hover:bg-green-700 focus:ring-green-500;
}

.btn-primary:hover {
    @apply bg-green-700 transform -translate-y-0.5 shadow-lg;
}

.btn-secondary {
    @apply bg-gray-600 text-white hover:bg-gray-700 focus:ring-gray-500;
}

.btn-secondary:hover {
    @apply bg-gray-700;
}

.btn-outline {
    @apply border-gray-300 text-gray-700 bg-white hover:bg-gray-50 focus:ring-gray-500;
}

.btn-outline:hover {
    @apply bg-gray-50;
}

.btn:disabled {
    @apply opacity-50 cursor-not-allowed transform-none shadow-none;
}

/* Card styles */
.card {
    @apply bg-white dark:bg-gray-800 rounded-xl shadow-sm border border-gray-200 dark:border-gray-700;
}

.card-header {
    @apply px-6 py-4 border-b border-gray-200 dark:border-gray-700;
}

.card-body {
    @apply p-6;
}

.card-title {
    @apply text-lg font-semibold text-gray-900 dark:text-white;
}

/* Table styles */
.table {
    @apply min-w-full divide-y divide-gray-200 dark:divide-gray-700;
}

.table th {
    @apply px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider;
}

.table td {
    @apply px-6 py-4 whitespace-nowrap text-sm text-gray-900 dark:text-white;
}

.table-striped tbody tr:nth-child(odd) {
    @apply bg-gray-50 dark:bg-gray-700;
}

/* Badge styles */
.badge {
    @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
}

.badge-success {
    @apply bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200;
}

.badge-warning {
    @apply bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200;
}

.badge-danger {
    @apply bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200;
}

.badge-info {
    @apply bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200;
}

/* Dark mode form overrides */
.dark .form-input, .dark .form-select, .dark .form-textarea {
    @apply bg-gray-700 text-white border-gray-600;
}

.dark .form-input::placeholder, .dark .form-textarea::placeholder {
    @apply text-gray-400;
}

.dark .form-input:hover, .dark .form-select:hover, .dark .form-textarea:hover {
    @apply border-gray-500;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sidebar-container {
        @apply w-full;
    }
    
    .main-content {
        @apply ml-0;
    }
} 