/* Standalone CSS for Server Ordering Page 
   Style: Modern SaaS / Minimalist
*/

:root {
    --primary: #ffaa01;
    --primary-hover: #e69900;
    --bg-body: #f4f6f9;
    --bg-panel: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --border-color: #dfe6e9;
    --shadow-soft: 0 4px 6px -1px rgba(0,0,0,0.05);
}

/* Base Reset */
body.standalone-body {
    margin: 0;
    padding: 0;
    font-family: 'Tahoma', 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    direction: rtl;
    line-height: 1.5;
}

* { box-sizing: border-box; }

.main-wrapper {
    padding: 40px 20px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Panels */
.panel {
    background: var(--bg-panel);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.panel-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
}

.panel-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-header h2 i { color: var(--primary); }

.panel-body { padding: 25px; }

/* Filter Grid */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    align-items: flex-end;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
}

.input-wrapper label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.input-wrapper input {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s;
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 170, 1, 0.1);
}

.btn-filter {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 11px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
    font-size: 0.95rem;
}

.btn-filter:hover { background-color: var(--primary-hover); }

/* Table Section */
.toolbar {
    padding: 20px;
    background: #fcfcfc;
    border-bottom: 1px solid var(--border-color);
}

.quick-search {
    position: relative;
    max-width: 400px;
}

.quick-search input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    outline: none;
    transition: 0.2s;
}

.quick-search input:focus {
    border-color: var(--primary);
    background: #fff;
}

.quick-search .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #b2bec3;
}

/* Table Styling */
.table-responsive {
    width: 100%;
    overflow-x: auto; /* Handles overflow properly */
}

.modern-table {
    width: 100% !important;
    border-collapse: collapse;
    margin: 0;
}

.modern-table thead th {
    background-color: #f8f9fa;
    color: var(--text-muted);
    font-weight: 700;
    padding: 15px;
    font-size: 0.85rem;
    text-align: right;
    white-space: nowrap;
    border-bottom: 2px solid var(--border-color);
}

.modern-table tbody td {
    padding: 14px 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    vertical-align: middle;
}

.modern-table tbody tr:hover { background-color: #f8fafc; }

/* Columns */
.id-cell { font-family: monospace; color: #b2bec3; font-weight: bold; }
.cpu-cell { color: var(--text-main); font-weight: 600; }
.price-cell { color: var(--text-main); font-weight: 800; font-size: 1.05rem; }
.ltr { direction: ltr; text-align: left; }
.col-desc { width: 25%; }

/* Badges */
.badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
}

.badge-dark { background: #2d3436; color: #fff; border-radius: 20px; }
.badge-ssd { background: #ffeaa7; color: #d35400; margin-left: 5px; }
.badge-nvme { background: #74b9ff; color: #0984e3; margin-left: 5px; }
.badge-sata { background: #dfe6e9; color: #636e72; margin-left: 5px; }

.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tags span {
    background: #f1f2f6;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    color: #636e72;
}

/* Alert */
.alert-error {
    background: #fab1a0;
    color: #d63031;
    padding: 15px;
    margin: 20px;
    border-radius: 8px;
}

/* Pagination Styling Overrides */
.dataTables_wrapper .dataTables_paginate {
    padding: 20px;
    float: left; 
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 5px 12px;
    margin: 0 2px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary) !important;
    color: white !important;
    border: none;
}