* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF4500;
    --secondary-color: #FF6600;
    --accent-color: #FF8C00;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #999999;
    --success: #4CAF50;
    --error: #f44336;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    color: var(--text-light);
    min-height: 100vh;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Login Screen */
.login-container {
    max-width: 500px;
    margin: 100px auto;
    padding: 2rem;
}

.logo-section {
    text-align: center;
    margin-bottom: 3rem;
}

.main-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 40px rgba(255, 69, 0, 0.8);
    margin-bottom: 1.5rem;
    object-fit: cover;
}

.main-title {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.form-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, #0a0a0a 100%);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 69, 0, 0.3);
    box-shadow: 0 10px 40px rgba(255, 69, 0, 0.4);
}

.form-card h2 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
}

.form-input,
.form-textarea,
.form-file {
    width: 100%;
    padding: 1rem;
    background: #000000;
    border: 2px solid rgba(255, 69, 0, 0.3);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.4);
}

.form-file {
    padding: 0.8rem;
}

.btn-primary {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 69, 0, 0.7);
}

.btn-secondary {
    padding: 0.8rem 1.5rem;
    background: #000000;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0.5rem;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.admin-link {
    text-align: center;
    margin-top: 1rem;
}

.admin-link a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.admin-link a:hover {
    text-decoration: underline;
}

.toggle-form {
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.toggle-form a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.95rem;
}

.toggle-form a:hover {
    color: var(--primary-color);
}

/* Dashboard */
.header {
    background: linear-gradient(135deg, #000000 0%, #1a0a00 100%);
    padding: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(255, 69, 0, 0.3);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 1.8rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info span {
    color: var(--accent-color);
    font-weight: bold;
}

.btn-logout {
    padding: 0.5rem 1rem;
    background: rgba(255, 69, 0, 0.2);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: var(--accent-color);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: var(--primary-color);
    color: white;
}

.dashboard-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.action-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, #0a0a0a 100%);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 69, 0, 0.3);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.action-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(255, 69, 0, 0.5);
}

.action-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.action-card h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.action-card p {
    color: var(--text-muted);
}

.view-sections {
    text-align: center;
    margin-top: 3rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, var(--card-bg) 0%, #0a0a0a 100%);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(255, 69, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.modal.large .modal-content {
    max-width: 900px;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    color: var(--accent-color);
    cursor: pointer;
}

.close:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.highlight-email {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    background: rgba(255, 69, 0, 0.1);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    word-break: break-all;
    margin-bottom: 1.5rem;
}

.verification-tips {
    background: rgba(255, 69, 0, 0.08);
    border: 1px dashed rgba(255, 69, 0, 0.5);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.verification-tips p {
    margin-bottom: 0.4rem;
    color: var(--text-light);
}

.verification-tips p:last-child {
    margin-bottom: 0;
}

/* Items List */
.items-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.item-card {
    background: rgba(255, 69, 0, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.item-user {
    color: var(--accent-color);
    font-weight: bold;
}

.item-status {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.status-resolved {
    background: var(--success);
    color: white;
}

.status-liked {
    background: var(--primary-color);
    color: white;
}

.item-description {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.item-images {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.item-images img {
    max-width: 200px;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
}

.item-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transform: translateX(400px);
    transition: transform 0.3s;
    z-index: 2000;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: var(--success);
    color: white;
}

.notification.error {
    background: var(--error);
    color: white;
}

/* Responsive */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    .admin-container {
        padding: 1.5rem;
    }
    
    .admin-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1.5fr 2fr 1fr 1fr;
        font-size: 0.95rem;
    }
    
    .user-table-header,
    .user-table-row {
        grid-template-columns: 1fr 1.5fr 0.8fr 0.8fr 1.5fr;
    }
}

/* Mobile grande */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .login-container {
        margin: 50px auto;
        padding: 1rem;
    }
    
    .main-logo {
        width: 120px;
        height: 120px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .form-card {
        padding: 2rem 1.5rem;
    }
    
    .dashboard-header {
        padding: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .action-card {
        padding: 2rem 1.5rem;
    }
    
    .card-icon {
        font-size: 3rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        max-height: 85vh;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 0.9rem;
    }
    
    .admin-container {
        padding: 1rem;
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .admin-tabs {
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .table-header {
        display: none;
    }
    
    .table-row {
        display: block;
        padding: 1.5rem;
        border: 1px solid rgba(255, 69, 0, 0.3);
        border-radius: 10px;
        margin-bottom: 1rem;
    }
    
    .table-row > div {
        margin-bottom: 0.8rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(255, 69, 0, 0.1);
    }
    
    .table-row > div:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .action-buttons {
        flex-wrap: wrap;
    }
    
    .btn-sm {
        flex: 1;
        min-width: 120px;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .item-images {
        flex-direction: column;
    }
    
    .item-images img {
        max-width: 100%;
    }
    
    .verification-tips p {
        font-size: 0.95rem;
    }
}

/* Mobile pequeño */
@media (max-width: 480px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .form-card {
        padding: 1.5rem 1rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .action-card {
        padding: 1.5rem 1rem;
    }
    
    .action-card h3 {
        font-size: 1.2rem;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .tab-btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
    
    .modal-content {
        padding: 1.2rem;
    }
    
    .btn-sm {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        min-width: 100px;
    }
}
