/* =============================================
   ARTECALLI - Estilos del Panel Admin
   ============================================= */

:root {
    --sidebar-width: 260px;
    --header-height: 60px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f5f5;
}

.brand-text {
    font-family: 'Playfair Display', serif;
}

/* Login/Register */
.bg-secondary-dark {
    background-color: #2d2d2d !important;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-nav .nav-link {
    color: #9ca3af;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.sidebar-nav .nav-link:hover {
    background-color: #374151;
    color: white;
}

.sidebar-nav .nav-link.active {
    background-color: white;
    color: #1a1a1a;
    font-weight: 500;
}

.sidebar-footer .nav-link {
    color: #9ca3af;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.sidebar-footer .nav-link:hover {
    background-color: rgba(220, 38, 38, 0.2);
    color: #f87171;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background-color: #f8f9fa;
}

.admin-header {
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Tables */
.table th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}

.table td {
    vertical-align: middle;
}

/* Color Options (Radio buttons styled) */
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.color-option input {
    display: none;
}

.color-option .color-box {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.color-option input:checked + .color-box {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #1a1a1a;
}

.color-option small {
    font-size: 0.65rem;
    margin-top: 4px;
    color: #6b7280;
}

/* Tipo Options (Radio buttons styled) */
.tipo-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tipo-option {
    cursor: pointer;
}

.tipo-option input {
    display: none;
}

.tipo-option .tipo-box {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: white;
    transition: all 0.2s ease;
}

.tipo-option input:checked + .tipo-box {
    background-color: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.tipo-option:hover .tipo-box {
    border-color: #1a1a1a;
}

/* Color dot in tables */
.color-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #ddd;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* Modal */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #f0f0f0;
}

.modal-footer {
    border-top: 1px solid #f0f0f0;
}

/* Cards */
.card {
    border-radius: 12px;
}

/* Buttons */
.btn {
    border-radius: 8px;
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 0.2rem rgba(26, 26, 26, 0.15);
}

/* Switch */
.form-check-input:checked {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}
