/* Modal Overlay and Container Styles */
.modal-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: 50;
}

.modal-container {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 6px 10px rgba(0, 0, 0, 0.08);
    width: 24rem;
    max-width: 90%;
    position: relative;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #dc2626;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

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

.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button Styles */
.btn {
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-align: center;
    display: inline-block;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-success {
    background-color: #10b981;
    color: white;
}

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

/* Message/Alert Styles */
.alert {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 0.375rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

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

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

/* Link Styles */
.form-links {
    margin-top: 1rem;
    text-align: center;
}

.form-link {
    font-size: 0.875rem;
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

.form-link:hover {
    text-decoration: underline;
    color: #2563eb;
}

.form-link-secondary {
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.form-link-secondary:hover {
    text-decoration: underline;
    color: #4b5563;
}

/* Hide element (for x-cloak) */
[x-cloak] {
    display: none !important;
}


/* ============================================
   ZOOM MODAL STYLES
   ============================================ */
.zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 1);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.zoom-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--gray);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.875rem;
    padding: 0.5rem;
    transition: color 0.2s;
}

.zoom-modal-close:hover {
    color: var(--orange); 
}

.zoom-modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ============================================
   TAB NAVIGATION STYLES
   ============================================ */
.tab-nav {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.tab-nav-list {
    display: flex;
    gap: 2rem;
    margin-bottom: -1px;
}

.tab-button {
    white-space: nowrap;
    padding: 0.5rem 0.25rem;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    cursor: pointer;
    color: #6b7280;
}

.tab-button:hover {
    color: #374151;
    border-bottom-color: #d1d5db;
}

.tab-button.active {
    color: #2563eb;
    border-bottom-color: #3b82f6;
}

/* ============================================
   PROFILE PAGE STYLES
   ============================================ */
.profile-card {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.profile-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.profile-grid-full {
    grid-column: 1 / -1;
}

.info-box {
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.375rem;
}

.info-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 600;
    color: #1f2937;
}

.status-active {
    color: #059669;
}

.status-inactive {
    color: #dc2626;
}

.admin-note {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 0.375rem;
}

.form-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    font-family: inherit;
}

.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input-disabled {
    background-color: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

.form-hint {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.form-max-width {
    max-width: 28rem;
}

/* ============================================
   PAGINATION STYLES
   ============================================ */
.pagination {
	grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin: 2rem 0;
}

.pagination-link {
    padding: 0.25rem 0.75rem;
    background-color: #e5e7eb;
    color: #374151;
    /*border-radius: 0.25rem;*/
    text-decoration: none;
    transition: background-color 0.2s;
}

.pagination-link:hover {
    background-color: #d1d5db;
}

.pagination-current {
    padding: 0.25rem 0.75rem;
    background-color: #ff801a;
    color: white;
    /*border-radius: 0.25rem;*/
}

.pagination-disabled {
    padding: 0.25rem 0.75rem;
    background-color: #f3f4f6;
    color: #9ca3af;
    /*border-radius: 0.25rem;*/
    cursor: not-allowed;
}

.pagination-dots {
    padding: 0 0.5rem;
    color: #6b7280;
}

