/* Global Theme - Pastel Brown & Cream */
/* Apply to all pages for consistency */

/* Content background */
.content {
    background-color: var(--bg-light);
}

/* All white cards/containers */
.page {
    background-color: var(--bg-light);
}

/* Headers */
h2, h3, h4 {
    color: var(--text-primary);
}

/* Links */
a {
    color: var(--primary-brown);
}

a:hover {
    color: var(--primary-brown-dark);
}

/* All action buttons */
.action-btn,
.btn:not(.btn-edit):not(.btn-delete):not(.btn-save),
button:not(.cancel-btn):not(.forgot-password):not(.btn-edit):not(.btn-delete):not(.save-button):not(.clear-button):not(.save-btn) {
    background: linear-gradient(135deg, var(--primary-brown), var(--primary-brown-dark));
    color: var(--secondary-cream);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px var(--shadow-color);
}

.action-btn:hover,
.btn:not(.btn-edit):not(.btn-delete):not(.btn-save):hover,
button:not(.cancel-btn):not(.forgot-password):not(.btn-edit):not(.btn-delete):not(.save-button):not(.clear-button):not(.save-btn):hover {
    background: linear-gradient(135deg, var(--primary-brown-dark), var(--primary-brown-darker));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow-color);
}

/* Cards and containers */
.card,
.modal-content,
.section-content,
.employee-settings-container,
.settings-section,
.employee-list-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow-color);
    border: 1px solid var(--border-color);
}

/* Tables */
table {
    background: white;
}

table thead {
    background: var(--secondary-cream-dark);
    color: var(--text-primary);
}

table tbody tr:hover {
    background-color: var(--secondary-cream);
}

table th,
table td {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Input fields */
input,
select,
textarea {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: white;
    color: var(--text-primary);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-brown);
    box-shadow: 0 0 0 4px rgba(166, 124, 82, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

/* Modals */
.modal {
    background-color: rgba(107, 68, 35, 0.5);
}

.modal-header {
    background: linear-gradient(135deg, var(--secondary-cream), var(--secondary-cream-dark));
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
}

.modal-header h3 {
    color: var(--text-primary);
}

/* Badges and status */
.badge,
.status {
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-primary,
.status-active {
    background-color: rgba(166, 124, 82, 0.2);
    color: var(--primary-brown-darker);
}

.badge-secondary,
.status-inactive {
    background-color: rgba(181, 146, 123, 0.2);
    color: var(--text-muted);
}

/* Dropdown items */
.dropdown-item {
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--secondary-cream);
    color: var(--primary-brown);
}

.dropdown-divider {
    background-color: var(--border-color);
}

/* Submenu */
.submenu {
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.submenu a {
    color: var(--text-primary);
}

.submenu a:hover {
    background-color: var(--secondary-cream);
    color: var(--primary-brown);
}

/* Notifications */
.notification {
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.notification.success {
    background-color: rgba(166, 124, 82, 0.1);
    border-left: 4px solid var(--primary-brown);
    color: var(--primary-brown-darker);
}

.notification.error {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.notification.info {
    background-color: rgba(166, 124, 82, 0.05);
    border-left: 4px solid var(--primary-brown-dark);
    color: var(--text-primary);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

/* Store Info Modal - ensure action buttons sit on one row */
#storeInfoModal .form-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px;
    justify-content: center !important;
    align-items: center;
    margin-top: 18px;
    padding-top: 0;
}

/* Make buttons fixed-size, centered, and prevent text wrapping */
#storeInfoModal .form-actions .save-btn,
#storeInfoModal .form-actions .cancel-btn {
    flex: 0 0 auto;
    min-width: 180px;
    padding: 12px 20px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#storeInfoModal .form-actions .save-btn { background: #28a745; color: #fff; border: 2px solid #28a745; }
#storeInfoModal .form-actions .cancel-btn { background: #dc3545; color: #fff; border: 2px solid #dc3545; }

::-webkit-scrollbar-track {
    background: var(--secondary-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-brown-dark);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-brown-darker);
}

/* Selection color */
::selection {
    background-color: var(--primary-brown);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-brown);
    color: white;
}

/* Override for specific button classes */
button.save-button {
    background: #28a745 !important;
    color: white !important;
    border: 2px solid #28a745 !important;
    box-shadow: none !important;
}

button.save-button:hover {
    background: #218838 !important;
    border-color: #218838 !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4) !important;
}

button.clear-button {
    background: #dc3545 !important;
    color: white !important;
    border: 2px solid #dc3545 !important;
    box-shadow: none !important;
}

button.clear-button:hover {
    background: #c82333 !important;
    border-color: #c82333 !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4) !important;
}
