/* ============================================================
   TEAM RIP ENGINEERING — ADMIN PANEL STYLESHEET
   ============================================================ */

/* Inherits body reset from style.css when loaded together,
   but admin pages load this INSTEAD of style.css */

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

body {
    background-color: #111111;
    color: #CCCCCC;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.6;
}

a {
    color: #FF8C00;
    text-decoration: none;
}
a:hover {
    color: #FFCC00;
    text-decoration: underline;
}

/* === ADMIN WRAPPER === */
.admin-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 0;
}

/* === ADMIN HEADER === */
.admin-header {
    background-color: #1A0800;
    border-bottom: 2px solid #FF6600;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header .brand {
    color: #FF6600;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.admin-header .brand span {
    color: #888888;
    font-size: 11px;
    font-weight: normal;
    letter-spacing: 2px;
    margin-left: 10px;
}

.admin-header .logout-link {
    color: #888888;
    font-size: 11px;
    text-decoration: none;
    border: 1px solid #333333;
    padding: 3px 10px;
}

.admin-header .logout-link:hover {
    color: #FF3300;
    border-color: #FF3300;
}

/* === ADMIN NAV === */
.admin-nav {
    background-color: #0D0D0D;
    border-bottom: 1px solid #2A2A2A;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.admin-nav a {
    color: #888888;
    text-decoration: none;
    padding: 8px 14px;
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-right: 1px solid #1A1A1A;
}

.admin-nav a:hover,
.admin-nav a.active {
    background-color: #FF6600;
    color: #000000;
}

/* === ADMIN CONTENT === */
.admin-content {
    padding: 20px;
    min-height: 400px;
}

/* === PAGE TITLE === */
.admin-page-title {
    color: #FF6600;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2A2A2A;
}

/* === ALERT MESSAGES === */
.alert {
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 12px;
    border-radius: 0;
}

.alert-success {
    background-color: #001A00;
    border: 1px solid #00AA00;
    color: #00CC00;
}

.alert-error {
    background-color: #1A0000;
    border: 1px solid #AA0000;
    color: #FF4444;
}

.alert-info {
    background-color: #0A0A1A;
    border: 1px solid #3333AA;
    color: #8888FF;
}

/* === FORMS === */
.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    color: #888888;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.form-control {
    width: 100%;
    background-color: #0A0A0A;
    border: 1px solid #333333;
    color: #CCCCCC;
    padding: 6px 8px;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    outline: none;
}

.form-control:focus {
    border-color: #FF6600;
    color: #FFFFFF;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23FF6600'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 24px;
    cursor: pointer;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 7px 16px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
}

.btn-primary {
    background-color: #FF6600;
    color: #000000;
}

.btn-primary:hover {
    background-color: #FF8800;
    color: #000000;
    text-decoration: none;
}

.btn-secondary {
    background-color: #2A2A2A;
    color: #CCCCCC;
    border: 1px solid #444444;
}

.btn-secondary:hover {
    background-color: #333333;
    color: #FFFFFF;
    text-decoration: none;
}

.btn-danger {
    background-color: #550000;
    color: #FF4444;
    border: 1px solid #880000;
}

.btn-danger:hover {
    background-color: #880000;
    color: #FFFFFF;
    text-decoration: none;
}

.btn-sm {
    padding: 3px 10px;
    font-size: 10px;
}

/* === TABLES (admin data grids) === */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.data-table th {
    background-color: #1A0800;
    color: #FF6600;
    padding: 7px 10px;
    text-align: left;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #FF6600;
}

.data-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #1A1A1A;
    font-size: 11px;
    vertical-align: middle;
}

.data-table tr:hover td {
    background-color: #0A0500;
}

.data-table .inactive td {
    opacity: 0.45;
}

/* === SECTION CARD === */
.admin-card {
    background-color: #0A0A0A;
    border: 1px solid #2A2A2A;
    padding: 16px;
    margin-bottom: 20px;
}

.admin-card h3 {
    color: #FF6600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #2A2A2A;
}

/* === LOGIN PAGE === */
.login-box {
    max-width: 340px;
    margin: 60px auto 0;
    background-color: #0A0A0A;
    border: 1px solid #333333;
    padding: 30px;
}

.login-box .login-title {
    text-align: center;
    margin-bottom: 20px;
}

.login-box .login-title .brand {
    display: block;
    color: #FF6600;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 5px;
}

.login-box .login-title .sub {
    color: #555555;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* === DASHBOARD CARDS === */
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.dash-card {
    background-color: #0A0A0A;
    border: 1px solid #2A2A2A;
    padding: 16px;
    text-align: center;
}

.dash-card .dash-label {
    color: #666666;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.dash-card .dash-count {
    color: #FF6600;
    font-size: 28px;
    font-weight: bold;
}

.dash-card .dash-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    color: #FFCC00;
}

/* === ADMIN FOOTER === */
.admin-footer {
    border-top: 1px solid #1A1A1A;
    padding: 10px 20px;
    text-align: center;
    color: #333333;
    font-size: 10px;
}

/* === UTILITIES === */
.flex-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mt-0  { margin-top: 0; }
.mt-12 { margin-top: 12px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.w-100 { width: 100%; }
.text-muted { color: #555555; }
.text-warning { color: #FFCC00; }
.text-danger  { color: #FF4444; }
.text-success { color: #00CC00; }
