/* Admin V3 Styling System (Stockholm inspired) */

:root {
    --mq-blue: #1c2b46;
    --mq-green: #90c24d;
    --mq-orange: #f29c1f;
    --mq-navy: #0e1627;
    --mq-light-gray: #f4f7f6;
}

a {
    text-decoration: none;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--mq-navy);
    margin: 0;
}

.admin-bar,
.admin-nav {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.admin-dashboard,
.analitica-admin {
    padding-top: 18px !important;
}

@media (max-width: 768px) {
    .admin-dashboard,
    .analitica-admin {
        padding-top: 14px !important;
    }
}

.v3-main-content {
    background-color: var(--mq-light-gray);
    min-height: calc(100vh - 120px);
    padding: 40px 0;
}

.v3-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.v3-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.v3-title {
    color: var(--mq-blue);
    margin: 0;
    font-size: 2.2rem;
    font-weight: 800;
}

.v3-subtitle {
    color: #666;
    margin: 5px 0 0 0;
    font-size: 1rem;
}

.v3-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

/* Table styling */
.v3-table {
    width: 100%;
    border-collapse: collapse;
}

.v3-table th {
    background: #f8f9fa;
    color: var(--mq-blue);
    font-weight: 700;
    text-align: left;
    padding: 15px 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eee;
}

.v3-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f1f1;
    vertical-align: middle;
}

.v3-table tr:last-child td {
    border-bottom: none;
}

/* Buttons */
.v3-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.v3-btn-primary {
    background-color: var(--mq-green);
    color: var(--mq-blue) !important;
}

.v3-btn-primary:hover {
    background-color: #a2c037;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(162, 192, 55, 0.4);
}

.v3-btn-outline {
    background-color: transparent;
    border: 2px solid #ddd;
    color: #666 !important;
}

.v3-btn-outline:hover {
    border-color: var(--mq-blue);
    color: var(--mq-blue) !important;
}

.v3-btn-icon {
    color: var(--mq-blue);
    font-size: 1.1rem;
    transition: color 0.2s;
}

.v3-btn-icon:hover {
    color: var(--mq-green);
}

/* Badges */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.v3-form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--mq-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v3-form-control {
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    border: 2px solid #edf0f5;
    font-family: inherit;
    font-size: 1rem;
    color: var(--mq-blue);
    background: #fff;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-sizing: border-box;
    appearance: none; /* Mejor control visual */
}

.v3-form-control:focus {
    outline: none;
    border-color: var(--mq-green);
    box-shadow: 0 8px 20px rgba(144, 194, 77, 0.15);
    transform: translateY(-1px);
}

.v3-form-control::placeholder {
    color: #b1b9c9;
}

.form-control, .v3-input {
    width: 100%;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--mq-blue);
    background: #fff;
    transition: all 0.2s;
}

.form-control:focus, .v3-input:focus {
    outline: none;
    border-color: var(--mq-green);
    box-shadow: 0 0 0 4px rgba(144, 194, 77, 0.1);
}

.img-selector-item {
    transition: all 0.2s;
    background: white;
}
.img-selector-item:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.img-selector-item.selected {
    border-color: var(--mq-green) !important;
    background: #f0f7e6;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}
