/* admin-ui/public/css/venchi.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
    --venchi-orange: #E35205;
    --venchi-orange-hover: #c44502;
    --venchi-dark: #1A1A1A;
    --venchi-milk: #5C4B41;
    --venchi-light-gray: #F8F8F8;
    --venchi-white: #FFFFFF;
    --border-color: #EAEAEA;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--venchi-light-gray);
    color: var(--venchi-dark);
}

h1, h2, h3, .brand-font {
    font-family: 'Playfair Display', serif;
}

/* Login Container */
.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--venchi-dark) 0%, #362214 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(227, 82, 5, 0.15) 0%, rgba(0,0,0,0) 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    z-index: 0;
}

.login-box {
    background: var(--venchi-white);
    padding: 40px 50px;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    width: 360px;
    text-align: center;
    border-top: 4px solid var(--venchi-orange);
    position: relative;
    z-index: 1;
}

.login-logo {
    max-width: 160px;
    margin-bottom: 20px;
}

.login-box h1 {
    color: var(--venchi-dark);
    margin-bottom: 5px;
    font-size: 28px;
    font-weight: 600;
}

.login-box p {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--venchi-milk);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--venchi-orange);
    box-shadow: 0 0 0 3px rgba(227, 82, 5, 0.1);
}

.btn-primary {
    background-color: var(--venchi-orange);
    color: var(--venchi-white);
    border: none;
    padding: 14px 20px;
    width: 100%;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: var(--venchi-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(227, 82, 5, 0.3);
}

/* Dashboard Sidebar & Layout */
.dashboard-layout {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: var(--venchi-white);
    color: var(--venchi-dark);
    padding: 25px 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    box-shadow: 2px 0 10px rgba(0,0,0,0.02);
}

.sidebar-header {
    text-align: center;
    padding-bottom: 25px;
    margin-bottom: 15px;
}
.sidebar-logo {
    max-width: 140px;
}

.nav-link {
    padding: 15px 30px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
}
.nav-link:hover, .nav-link.active {
    background-color: rgba(227, 82, 5, 0.05);
    color: var(--venchi-orange);
    border-left: 4px solid var(--venchi-orange);
}

.main-content {
    flex: 1;
    background-color: var(--venchi-light-gray);
    padding: 40px;
    overflow-y: auto;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    background: var(--venchi-white);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
}
.main-header h2 {
    margin: 0;
    color: var(--venchi-dark);
    font-weight: 600;
    font-size: 24px;
}

.card {
    background: var(--venchi-white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

th {
    background-color: var(--venchi-light-gray);
    color: var(--venchi-milk);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}
td {
    color: #444;
}

tr:hover td {
    background-color: #fafafa;
}

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge.online {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}
.badge.offline {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--venchi-white);
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 80%;
    max-width: 900px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
    border-top: 4px solid var(--venchi-orange);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--venchi-dark);
}

.modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-body {
    display: flex;
    gap: 30px;
}

.modal-section {
    flex: 1;
    background: #fdfdfd;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.modal-section h3 {
    margin-top: 0;
    color: var(--venchi-milk);
    font-size: 16px;
    margin-bottom: 15px;
}

.track-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    background: white;
    margin-bottom: 5px;
    border-radius: 4px;
}
