/* Printlabs Web Admin Styles matching the WPF Application */

@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;500;600;700&display=swap');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
    background-color: #212121; /* Slightly darker than #2d2d30 for overall background */
    color: #e0e0e0;
    font-size: 14px;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 500;
}

/* Sidebar Layout */
.page {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.sidebar {
    background-color: #252526;
    width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #3e3e42;
    padding-top: 20px;
}

.main {
    flex-grow: 1;
    overflow-y: auto;
    background-color: #1e1e1e;
    padding: 30px;
}

/* Sidebar Branding */
.top-row {
    padding: 0 20px 20px 20px;
    text-align: center;
}

.top-row img {
    max-width: 180px;
    margin-bottom: 5px;
}

.brand-subtitle {
    font-family: 'Pristina', 'Segoe Script', 'Brush Script MT', cursive;
    color: #DDDDDD;
    font-size: 22px;
    margin: 0;
    margin-bottom: 20px;
    font-weight: normal;
}

/* Sidebar Navigation */
.nav-scrollable {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 15px;
    overflow-y: auto;
    flex: 1;
}

.nav-item {
    margin-bottom: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #e0e0e0;
    background-color: #333333;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.2s;
    border: 1px solid transparent;
}

.nav-link:hover {
    background-color: #3e3e42;
    color: #ffffff;
}

.nav-link.active {
    background-color: #404040;
    color: #FF9800; /* Orange highlight for active */
    border-left: 3px solid #FF9800;
}

/* Special buttons in sidebar */

.btn-execute {
    background-color: #b71c1c;
    color: white;
}

.btn-execute:hover {
    background-color: #d32f2f;
}

.btn-broadcast {
    background-color: #FF9800;
    color: white;
}

.btn-broadcast:hover {
    background-color: #F57C00;
}

/* Base Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #252526;
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #3e3e42;
}

/* Forms and Inputs */
input, select, textarea {
    width: 100%;
    padding: 8px 12px;
    background-color: #1e1e1e;
    color: white;
    border: 1px solid #3e3e42;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #007acc;
}

label {
    display: block;
    color: #aaaaaa;
    margin-bottom: 5px;
    font-size: 13px;
}

/* Buttons */
.btn-primary {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #43A047;
}

.btn-secondary {
    background-color: transparent;
    color: #aaaaaa;
    border: 1px solid #3e3e42;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    color: white;
    border-color: #555555;
    background-color: rgba(255,255,255,0.05);
}

.btn-danger {
    background-color: transparent;
    color: #ff4444;
    border: 1px solid #ff4444;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-danger:hover {
    background-color: rgba(255, 68, 68, 0.1);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

thead th {
    padding: 12px 15px;
    color: #aaaaaa;
    font-weight: 500;
    font-size: 13px;
    background-color: #252526;
    border-bottom: 1px solid #3e3e42;
}

tbody tr {
    border-bottom: 1px solid #3e3e42;
    background-color: #1e1e1e;
}

tbody tr:hover {
    background-color: #2a2a2c;
}

tbody td {
    padding: 12px 15px;
    color: #e0e0e0;
    font-size: 14px;
}

/* Cards / Containers */
.card {
    background-color: #252526;
    border-radius: 6px;
    border: 1px solid #3e3e42;
    overflow: hidden;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #3e3e42;
    background-color: #2d2d30;
}

.card-body {
    padding: 20px;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #1e1e1e; 
}
::-webkit-scrollbar-thumb {
    background: #424242; 
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

#blazor-error-ui {
    background: #b71c1c;
    color: white;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

#blazor-error-ui a {
    color: #ffb300;
}
