* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.login-container input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.login-container button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.btn-logout {
    padding: 8px 15px;
    background: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 3px;
}

.form-section {
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.form-section input,
.form-section textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.form-section button {
    padding: 10px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background: #f8f9fa;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 3px;
    margin-bottom: 20px;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 3px;
    margin-bottom: 20px;
}

.btn-download {
    display: inline-block;
    padding: 10px 20px;
    background: #17a2b8;
    color: white;
    text-decoration: none;
    border-radius: 3px;
}
/* Estilos adicionales */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.stats-section {
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    border-left: 4px solid #007bff;
}

.stat-card h3 {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #007bff;
}

.stat-number.active {
    color: #28a745;
}

.stat-number.inactive {
    color: #dc3545;
}

.recent-section {
    background: white;
    padding: 20px;
    border-radius: 5px;
}

.recent-list {
    margin-bottom: 20px;
}

.recent-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-item:last-child {
    border-bottom: none;
}

.btn {
    display: inline-block;
    padding: 8px 15px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    margin: 0 5px;
}

.btn-edit {
    background: #ffc107;
    color: #000;
}

.btn-delete {
    background: #dc3545;
}

.btn-pdf {
    background: #28a745;
}

.btn-qr {
    background: #17a2b8;
}

.status {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.status.active {
    background: #d4edda;
    color: #155724;
}

.status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.form-group {
    margin: 10px 0;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input[type="checkbox"] {
    margin-right: 10px;
}

small {
    color: #666;
    font-size: 12px;
}
/* Estilos específicos para taller */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.certificate-section {
    background: white;
    padding: 20px;
    border-radius: 5px;
}

.certificate-info {
    margin-bottom: 20px;
}

.cadena-unica {
    font-family: monospace;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 3px;
    font-size: 12px;
    word-break: break-all;
}

.certificate-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.certificate-actions a {
    text-align: center;
    padding: 12px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.certificate-actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.password-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.password-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.info-section {
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin-top: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid #17a2b8;
}

.info-card h3 {
    margin-bottom: 10px;
    color: #17a2b8;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .certificate-actions {
        flex-direction: column;
    }
}