/* nvoSUPERPOLLAYTRIPLETA - Modern CSS Styles */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #45b7d1;
    --success-color: #51cf66;
    --warning-color: #ffd43b;
    --danger-color: #ff6b6b;
    --info-color: #74c0fc;

    --dark-bg: #2d3436;
    --darker-bg: #1e1e1e;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;

    --border-radius: 10px;
    --border-radius-lg: 15px;
    --border-radius-xl: 20px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;

    --font-primary: 'Raleway', sans-serif;
    --font-heading: 'Orbitron', monospace;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--gray-800);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    min-width: 120px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #ee5a24);
    color: var(--white);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-success {
    background: linear-gradient(45deg, var(--success-color), #40c057);
    color: var(--white);
}

.btn-danger {
    background: linear-gradient(45deg, var(--danger-color), #fa5252);
    color: var(--white);
}

.btn-warning {
    background: linear-gradient(45deg, var(--warning-color), #fab005);
    color: var(--gray-900);
}

.btn-info {
    background: linear-gradient(45deg, var(--info-color), #339af0);
    color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-width: 100px;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    min-width: 160px;
}

.btn-ready {
    animation: pulse 1.5s infinite;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-input, .form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Alerts */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    max-width: 400px;
    padding: 1rem;
    border-radius: var(--border-radius);
    background: var(--white);
    box-shadow: var(--box-shadow-lg);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid var(--info-color);
    pointer-events: auto;
    color: #000000 !important;
}

.toast-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--gray-500);
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--gray-800);
}

.toast.closing {
    animation: slideOutRight 0.3s ease-in forwards;
}

.toast-success { border-left-color: var(--success-color); }
.toast-error { border-left-color: var(--danger-color); }
.toast-warning { border-left-color: var(--warning-color); }
.toast-info { border-left-color: var(--info-color); }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Psychedelic Text Animation */
.psychedelic-text {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f7b733, #fc466b);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: psychedelicGlow 3s ease-in-out infinite;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

@keyframes psychedelicGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Login Page Styles */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: var(--box-shadow-lg);
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 0.6s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.login-form-container {
    margin-bottom: 2rem;
}

.login-form {
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container .form-input {
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 5px;
}

.login-footer {
    text-align: center;
    border-top: 1px solid var(--gray-200);
    padding-top: 1.5rem;
}

.login-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.login-features span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Dashboard Styles */
.dashboard-page {
    background: var(--light-bg);
    min-height: 100vh;
}

.dashboard-header {
    background: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.brand-section h1 {
    font-size: 1.25rem;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    text-align: right;
}

.user-name {
    font-weight: 600;
    color: var(--gray-900);
}

.user-role {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.role-superadmin { background: linear-gradient(45deg, #ff6b6b, #ee5a24); color: white; }
.role-admin { background: linear-gradient(45deg, #ffd43b, #fab005); color: var(--gray-900); }
.role-taquilla { background: linear-gradient(45deg, #4ecdc4, #26a69a); color: white; }
.role-vip { background: linear-gradient(45deg, #74c0fc, #339af0); color: white; }

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.dashboard-main {
    padding: 2rem 0;
}

.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
}

.clock-display {
    text-align: center;
}

.clock-time {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.clock-date {
    font-size: 1rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
}

.welcome-message h2 {
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.welcome-message p {
    color: var(--gray-600);
}

/* Stats Section */
.stats-section {
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out both;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Actions Section */
.actions-section, .lotteries-section {
    margin-bottom: 2rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.action-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    text-decoration: none;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    color: var(--gray-900);
}

.action-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.action-content h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.action-content p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Sales Page Styles */
.sales-page {
    background: var(--light-bg);
    min-height: 100vh;
}

.sales-header {
    background: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.sales-main {
    padding: 2rem 0;
}

/* Lotteries Display */
.lotteries-display {
    margin-bottom: 1rem;
}

.lotteries-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.lottery-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    background-image: linear-gradient(to right, #FF512F 0%, #DD2476 51%, #FF512F 100%);
    background-size: 200% auto;
    color: white;
    box-shadow: 0 10px 20px rgba(221, 36, 118, 0.2);
    display: inline-block;
    margin: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    transition: 0.5s;
    border: 3px solid rgba(255,255,255,0.3);
    cursor: default;
    width: auto;
    animation: lotteryGlow 2s infinite ease-in-out;
}

.lottery-name:hover {
    background-position: right center;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(221, 36, 118, 0.4);
}

/* Time Display */
.time-display {
    margin-bottom: 1rem;
    text-align: center;
}

.clock-widget-compact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--box-shadow);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
    backdrop-filter: blur(5px);
}

.clock-widget-compact .separator {
    color: var(--gray-400);
    margin: 0 5px;
}

/* Animals Grid */
.animals-section {
    margin-bottom: 2rem;
}

.animals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.animal-item {
    aspect-ratio: 1;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    position: relative;
    padding: 0;
    overflow: hidden;
}

.animal-item:hover {
    transform: scale(1.05);
    box-shadow: var(--box-shadow);
}

.animal-item.selected {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--box-shadow-lg);
}

.animal-item.selected::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 107, 107, 0.4);
    z-index: 1;
}

.animal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.animal-number {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 2;
}

.animal-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 2px;
}

.animal-name {
    font-size: 0.75rem;
    font-weight: 700;
}

/* Sales Closed Watermark */
.sales-closed-watermark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--danger-color);
    text-shadow: 2px 2px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
    transform: rotate(-5deg);
    pointer-events: all;
    user-select: none;
    animation: watermarkPulse 2s infinite ease-in-out;
}

/* Selection Display */
.selected-animals-section {
    margin-bottom: 2rem;
}

.selected-animals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0.5rem;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    align-items: center;
}

.placeholder {
    color: var(--gray-500);
    font-style: italic;
}

.animal-tag {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.selected-animal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 5px;
}

.animal-name-small {
    font-size: 0.7rem;
    color: var(--gray-600);
    margin-top: 2px;
}

/* Sales Form */
.sales-container {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
}

.sales-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.selection-info {
    text-align: right;
}

.selected-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.selection-label {
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* Admin Page Styles */
.admin-page {
    background: var(--light-bg);
    min-height: 100vh;
}

.admin-header {
    background: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-main {
    padding: 2rem 0;
}

/* Tables */
.users-table, .sales-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.users-table th, .users-table td,
.sales-table th, .sales-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.users-table th, .sales-table th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-900);
}

.users-table tbody tr:hover,
.sales-table tbody tr:hover {
    background: var(--gray-50);
}

.actions-cell {
    display: flex;
    gap: 0.5rem;
}

.role-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-active {
    background: rgba(81, 207, 102, 0.1);
    color: var(--success-color);
}

.status-suspended {
    background: rgba(255, 107, 107, 0.1);
    color: var(--danger-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes watermarkPulse {
    0%, 100% { opacity: 1; transform: rotate(-5deg) scale(1); }
    50% { opacity: 0.5; transform: rotate(-5deg) scale(0.95); }
}

@keyframes lotteryGlow {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(221, 36, 118, 0.4);
        border-color: rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 81, 47, 0.6), 0 0 40px rgba(221, 36, 118, 0.4);
        border-color: rgba(255, 255, 255, 0.9);
    }
}

/* Sales Toolbar */
.sales-toolbar {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
}

.btn-toolbar {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-toolbar:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Sales Report Modal Custom Styles */
.sales-report-modal {
    max-width: 600px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.modal-header-custom {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-100);
}

.modal-header-custom h3 { margin: 0; font-size: 1.2rem; }

.close-modal-custom {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
}

.modal-body-custom {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: var(--light-bg);
}

.sale-item-card {
    background: white;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-left: 4px solid var(--secondary-color);
}

.sale-item-card.clickable-ticket {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sale-item-card.clickable-ticket:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #f8faff;
}

.sale-info-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.9rem; }
.sale-ticket { font-weight: 900; font-family: var(--font-heading); color: var(--gray-800); }
.sale-client { color: var(--gray-600); font-weight: 600; }
.sale-time { color: var(--gray-400); font-size: 0.8rem; }

.sale-animals-row { display: flex; gap: 5px; flex-wrap: wrap; }
.mini-animal-tag {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-800);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .user-section {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .welcome-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-actions {
        flex-direction: column;
    }

    .animals-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 0.5rem;
    }

    .animal-item {
        font-size: 1rem;
    }

    .lotteries-list {
        flex-direction: column;
        gap: 1rem;
    }

    .lottery-name {
        text-align: center;
    }
    
    .lottery-name {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
        width: 100%;
        display: block;
        margin: 5px 0;
    }
    
    .sales-closed-watermark {
        font-size: 2rem;
    }

    .users-table, .sales-table {
        font-size: 0.9rem;
    }

    .users-table th, .users-table td,
    .sales-table th, .sales-table td {
        padding: 0.5rem;
    }

    .actions-cell {
        flex-direction: column;
        gap: 0.25rem;
    }

    .btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .animals-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .animal-item {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    .animal-icon {
        font-size: 2.5rem;
    }
}

/* Print Styles */
@media print {
    .btn, .modal, .loading-overlay, .header-actions {
        display: none !important;
    }

    body {
        background: white !important;
    }

    .container {
        max-width: none !important;
        padding: 0 !important;
    }

    .stats-section, .actions-section {
        page-break-after: always;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.form-input:focus,
.form-select:focus,
.animal-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #ff0000;
        --secondary-color: #00ff00;
        --success-color: #00ff00;
        --danger-color: #ff0000;
    }
}

/* Password Strength Meter */
.password-strength-meter {
    height: 4px;
    background-color: var(--gray-300);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.password-feedback {
    font-size: 0.8rem;
    margin-top: 4px;
    color: var(--gray-600);
    font-weight: 500;
}
