* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, sans-serif; background: #f0f2f5; color: #333; }

/* Navbar */
.navbar { background: #1a1a2e; color: #fff; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 56px; }
.navbar-brand { font-size: 18px; font-weight: bold; color: #e94560; }
.navbar-links a { color: #ccc; text-decoration: none; margin-left: 20px; font-size: 14px; }
.navbar-links a:hover { color: #fff; }
.btn-logout { background: #e94560; color: #fff !important; padding: 6px 14px; border-radius: 4px; }
.creditos-badge { background: #f39c12; color: #fff; padding: 4px 10px; border-radius: 12px; font-size: 13px; margin-right: 10px; }

/* Container */
.container { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
h2 { font-size: 22px; margin-bottom: 20px; }
h3 { font-size: 18px; margin: 20px 0 12px; }

/* Cards */
.cards { display: flex; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.card { flex: 1; min-width: 160px; background: #fff; border-radius: 8px; padding: 20px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.08); border-top: 4px solid #ccc; }
.card-blue  { border-color: #3498db; }
.card-green { border-color: #2ecc71; }
.card-orange{ border-color: #f39c12; }
.card-gray  { border-color: #95a5a6; }
.card-num   { font-size: 36px; font-weight: bold; }
.card-label { font-size: 13px; color: #777; margin-top: 4px; }

/* Table */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.08); margin-bottom: 20px; }
.table th { background: #1a1a2e; color: #fff; padding: 12px 14px; text-align: left; font-size: 13px; font-weight: 600; }
.table td { padding: 10px 14px; border-bottom: 1px solid #f0f0f0; font-size: 13px; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #fafafa; }
.table tr:nth-child(even) td { background: #f9f9f9; }
.table tr:nth-child(even):hover td { background: #f0f0f0; }
code { background: #f0f0f0; padding: 2px 6px; border-radius: 4px; font-size: 13px; letter-spacing: 1px; font-family: 'Courier New', monospace; }

/* Badges */
.badge { padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: bold; }
.badge-green { background: #d4edda; color: #155724; }
.badge-red   { background: #f8d7da; color: #721c24; }
.badge-gray  { background: #e2e3e5; color: #383d41; }

/* Buttons */
.btn { padding: 8px 16px; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; text-decoration: none; display: inline-block; }
.btn-primary { background: #e94560; color: #fff; }
.btn-primary:hover { background: #c73652; }
.btn-blue    { background: #3498db; color: #fff; }
.btn-green   { background: #2ecc71; color: #fff; }
.btn-red     { background: #e74c3c; color: #fff; }
.btn-red:hover { background: #c0392b; }
.btn-gray    { background: #95a5a6; color: #fff; }
.btn-gray:hover { background: #7f8c8d; }
.btn-block   { width: 100%; text-align: center; }
.btn-sm      { padding: 4px 10px; font-size: 12px; }

/* Forms */
.form-group  { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: bold; }
.form-control { width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.form-inline  { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; }
.filtros      { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger  { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Modal */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 999; }
.modal-box { background: #fff; border-radius: 8px; padding: 30px; width: 100%; max-width: 440px; box-shadow: 0 8px 32px rgba(0,0,0,.2); }
.modal-box h3 { margin-bottom: 20px; }

/* Login */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #1a1a2e; }
.login-box { background: #fff; border-radius: 8px; padding: 40px; width: 100%; max-width: 380px; box-shadow: 0 8px 32px rgba(0,0,0,.3); }
.login-logo { text-align: center; margin-bottom: 30px; }
.login-logo h1 { color: #e94560; font-size: 32px; }
.login-logo p  { color: #777; font-size: 14px; }
