/*
|--------------------------------------------------------------------------
| PowerEdge Theme
|--------------------------------------------------------------------------
*/

:root {
    --pe-black: #070707;
    --pe-surface: #111827;
    --pe-red: #c81e1e;
    --pe-red-dark: #991b1b;
    --pe-gold: #d4a017;
    --pe-yellow: #facc15;
    --pe-bg: #f3f4f6;
    --pe-card: #ffffff;
    --pe-text: #1f2937;
    --pe-muted: #6b7280;
    --pe-border: #d1d5db;
}

/* General */
body {
    background:
        radial-gradient(circle at top left, rgba(212,160,23,.14), transparent 260px),
        linear-gradient(180deg, #f9fafb 0%, var(--pe-bg) 100%);
    color: var(--pe-text);
}

main {
    max-width: 1280px;
}

/* Header */
header {
    background: linear-gradient(90deg, #050505 0%, #111827 65%, #1f1111 100%) !important;
    border-bottom: 3px solid var(--pe-gold);
    box-shadow: 0 2px 10px rgba(0,0,0,.22);
}

header > div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: .2px;
    color: #fff;
}

header > div:first-child::before {
    content: "";
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-block;
    background-image: url('/assets/logo-pe.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 999px;
    border: 2px solid var(--pe-gold);
    box-shadow: 0 0 0 2px rgba(200,30,30,.35);
}

header a {
    color: #fff !important;
    font-weight: 700;
}

header a:hover {
    color: var(--pe-yellow) !important;
    text-decoration: none;
}

/* Cards */
.card {
    border: 1px solid #e5e7eb;
    border-top: 4px solid var(--pe-gold);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(17,24,39,.08);
}

.card h1,
.card h2 {
    color: #111827;
}

/* Login */
.login-card {
    max-width: 440px;
    border-top: 4px solid var(--pe-red);
    box-shadow: 0 10px 30px rgba(17,24,39,.16);
}

.login-card::before {
    content: "";
    display: block;
    width: 170px;
    height: 170px;
    margin: 0 auto 16px;
    background-image: url('/assets/logo-pe.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border-radius: 14px;
}

.login-card h1:first-of-type {
    text-align: center;
    margin-top: 0;
}

/* Forms */
input,
select,
textarea {
    border-color: var(--pe-border);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--pe-gold);
    box-shadow: 0 0 0 3px rgba(212,160,23,.20);
}

/* Buttons */
button,
input[type="submit"] {
    background: var(--pe-red);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(153,27,27,.22);
}

button:hover,
input[type="submit"]:hover {
    background: var(--pe-red-dark);
}

button.secondary {
    background: #374151;
}

button.secondary:hover {
    background: #1f2937;
}

button.danger {
    background: #dc2626;
}

button.danger:hover {
    background: #991b1b;
}

/* Links */
a {
    color: #b91c1c;
}

a:hover {
    color: #7f1d1d;
}

/* Tables */
table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

th {
    background: #111827;
    color: #fff;
    border-bottom: 2px solid var(--pe-gold);
}

td {
    background: #fff;
}

tr:hover td {
    background: #fff7ed;
}

/* Dashboard metrics */
.metric {
    border-top: 3px solid var(--pe-gold);
}

.metric .num {
    color: var(--pe-red-dark);
}


/*
|--------------------------------------------------------------------------
| PowerEdge Accent Layer v2
|--------------------------------------------------------------------------
*/

/* Fondo más corporativo */
body {
    background:
        radial-gradient(circle at top left, rgba(200,30,30,.20), transparent 320px),
        radial-gradient(circle at top right, rgba(212,160,23,.22), transparent 280px),
        linear-gradient(180deg, #fff7ed 0%, #f3f4f6 42%, #e5e7eb 100%) !important;
}

/* Header más marcado */
header {
    background:
        linear-gradient(90deg, #050505 0%, #111827 45%, #3f0b0b 100%) !important;
    border-bottom: 4px solid #d4a017 !important;
}

/* Nombre del portal */
header > div:first-child {
    font-size: 18px !important;
    text-transform: uppercase;
}

/* Links del menú */
header a {
    padding: 6px 8px;
    border-radius: 6px;
}

header a:hover {
    background: rgba(212,160,23,.18);
    color: #facc15 !important;
}

/* Cards más visibles */
.card {
    border-top: 5px solid #c81e1e !important;
    box-shadow: 0 8px 22px rgba(17,24,39,.12) !important;
}

.card h1 {
    border-bottom: 2px solid #facc15;
    padding-bottom: 10px;
    margin-bottom: 18px;
}

.card h2 {
    color: #7f1d1d !important;
}

/* Login más premium */
.login-card {
    border-top: 6px solid #c81e1e !important;
    background:
        linear-gradient(180deg, #ffffff 0%, #fffaf0 100%) !important;
}

.login-card::before {
    width: 190px !important;
    height: 190px !important;
    margin-bottom: 20px !important;
}

/* Botones principales más fuertes */
button,
input[type="submit"] {
    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%) !important;
    border: 1px solid #7f1d1d !important;
    letter-spacing: .2px;
}

button:hover,
input[type="submit"]:hover {
    background: linear-gradient(180deg, #ef4444 0%, #7f1d1d 100%) !important;
}

/* Inputs con foco más visible */
input:focus,
select:focus,
textarea:focus {
    border-color: #c81e1e !important;
    box-shadow: 0 0 0 3px rgba(200,30,30,.18) !important;
}

/* Tablas con más contraste */
th {
    background: linear-gradient(180deg, #111827 0%, #050505 100%) !important;
    color: #ffffff !important;
    border-bottom: 3px solid #d4a017 !important;
}

tr:nth-child(even) td {
    background: #fffaf0;
}

tr:hover td {
    background: #fef3c7 !important;
}

/* Dashboard metrics */
.metric {
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%) !important;
    border-left: 4px solid #c81e1e !important;
    border-top: 0 !important;
}

.metric .num {
    color: #991b1b !important;
}

/* Alertas */
.success {
    border-left: 5px solid #16a34a !important;
}

.error {
    border-left: 5px solid #dc2626 !important;
}

/* Badges existentes más visibles */
.fax-status {
    padding: 5px 10px !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* Footer visual para muted text dentro de cards */
.muted {
    color: #4b5563 !important;
}

/* Fax viewer table containment */
.card {
  overflow-x: auto;
}

.card table {
  max-width: 100%;
}

.card td,
.card th {
  vertical-align: top;
}

.card td {
  word-break: break-word;
}

/* Fax viewer table containment */
.card {
  overflow-x: auto;
}

.card table {
  max-width: 100%;
}

.card td,
.card th {
  vertical-align: top;
}

.card td {
  word-break: break-word;
}
