/**
 * Glassware Module Styles
 */

/* ===== Typography & Text Sizing ===== */

html,
body,
.app-root,
.app-default {
    /* bumped base font-size for better readability */
    font-size: 1.5rem;
}

h1,
h2,
h3,
.card-title {
    font-size: 1.15rem;
}

.btn,
.form-control,
.form-select,
.form-label,
.navbar,
.menu-title {
    font-size: 1.05rem;
}

.badge {
    font-size: 0.95rem;
}

/* ===== Layout & Structure ===== */

body {
    background-color: #f5f5f5;
}

.app-page {
    min-height: 100vh;
}

/* ===== Header & Navigation ===== */

.app-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.app-header h1 {
    color: #2c3e50;
    margin-bottom: 0;
    font-weight: 700;
}

.app-header h1 .fa-flask {
    color: #007bff;
}

/* ===== Sidebar ===== */

.app-sidebar {
    background-color: #f8f9fa;
}

.app-sidebar-menu .menu-item {
    padding: 0.5rem 0;
}

.app-sidebar-menu .menu-link {
    color: #6c757d;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.app-sidebar-menu .menu-link:hover {
    background-color: #e9ecef;
    color: #2c3e50;
}

.app-sidebar-menu .menu-link.active {
    background-color: #e7f1ff;
    color: #007bff;
    font-weight: 600;
}

/* ===== Main Content ===== */

.app-main {
    background-color: #fff;
}

.app-content {
    padding: 1.5rem;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== Cards ===== */

.card {
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem;
}

.card-header.bg-primary {
    background-color: #007bff !important;
    color: #fff;
}

.card-body {
    padding: 1.5rem;
}

/* ===== Forms ===== */

.form-control,
.form-select {
    border: 1px solid #d0d0d0;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.98rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* ===== Buttons ===== */

.btn {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0062cc;
    border-color: #0062cc;
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* ===== Icons ===== */

.symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.symbol-30px {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
}

.symbol-40px {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.symbol-50px {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
}

.symbol-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ===== Alerts & Notifications ===== */

.alert {
    border-radius: 0.375rem;
    border: none;
    padding: 1rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* ===== Footer ===== */

.app-footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 2rem 0;
    margin-top: auto;
}

.app-footer a {
    color: #ffc107;
    text-decoration: none;
    transition: color 0.2s ease;
}

.app-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ===== Responsive Design ===== */

@media (max-width: 768px) {
    .app-header h1 {
        font-size: 1.25rem;
    }

    .app-content {
        padding: 1rem;
    }

    .btn,
    .form-control,
    .form-select {
        font-size: 1rem;
        padding: 0.625rem 0.75rem;
    }

    .symbol-30px {
        width: 28px;
        height: 28px;
    }
}

/* ===== Utility Classes ===== */

.text-muted {
    color: #6c757d;
}

.text-dark {
    color: #2c3e50;
}

.bg-light-primary {
    background-color: #e7f1ff;
}

.bg-light-success {
    background-color: #d4edda;
}

.fw-bolder {
    font-weight: 700;
}

.cursor-pointer {
    cursor: pointer;
}

.separator {
    border-top: 1px solid #e0e0e0;
}
