/* public/assets/css/style.css */

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

:root {
    --primary-color: #ff7a00; /* Orange theme */
    --primary-light: #ff9838;
    --primary-dark: #e66e00;
    --bg-color: #fcfcfc;
    --sidebar-bg: #ffffff;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --white: #FFFFFF;
    --danger: #e74c3c;
    --border-radius: 16px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --input-focus: rgba(255, 122, 0, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
}

.login-body {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.login-body::before, .login-body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.login-body::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,122,0,0.15) 0%, rgba(255,255,255,0) 70%);
    top: -200px;
    left: -200px;
}

.login-body::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,122,0,0.1) 0%, rgba(255,255,255,0) 70%);
    bottom: -150px;
    right: -150px;
}

/* Glassmorphism Container */
.login-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--box-shadow);
    z-index: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 15px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px var(--input-focus);
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #f87171;
}

/* Unified Sidebar Styles */
.sidebar { width: 260px; background: var(--white); border-right: 1px solid #f3f4f6; padding: 25px 20px; display: flex; flex-direction: column; min-height: 100vh;}
.brand-area { display: flex; align-items: center; gap: 15px; margin-bottom: 40px; }
.brand-logo { width: 40px; height: 40px; }
.brand-text h2 { font-size: 18px; font-weight: 700; color: #111; margin: 0; }
.brand-text span { font-size: 12px; color: var(--primary-color); font-weight: 600; }

.sidebar-menu { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.sidebar-menu a { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 12px; text-decoration: none; color: #4b5563; font-weight: 500; font-size: 15px; transition: 0.2s; border-left: none; }
.sidebar-menu a .menu-left { display: flex; align-items: center; gap: 12px; }
.sidebar-menu a:hover { background: #f9fafb; color: #111; border-left: none; }
.sidebar-menu a.active { background: var(--primary-color); color: #fff; box-shadow: 0 4px 12px rgba(255,122,0,0.2); border-left: none; }
.sidebar-menu a.active svg { stroke: #fff; }

.menu-divider { height: 1px; background: #f3f4f6; margin: 15px 0; list-style: none; }
.menu-label { font-size: 11px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; padding: 0 16px 8px 16px; list-style: none; }

.submenu { list-style: none; padding-left: 36px; display: flex; flex-direction: column; gap: 2px; margin-top: 5px; }
.submenu a { padding: 8px 12px; font-size: 13.5px; color: #6b7280; border-radius: 8px; background: transparent !important; box-shadow: none !important; margin-bottom: 2px; }
.submenu a:hover { color: var(--primary-color); background: #fff7ed !important; }


/* Main Content Styles */
.main-content { flex: 1; padding: 40px; background: #fffcfb; overflow-y: auto; min-height: 100vh;}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 16px;
    padding: 32px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
}

/* Form Multi-section */
.form-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f3f4f6;
}

.form-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

.btn-submit {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 16px;
}

.btn-submit:hover {
    background: var(--primary-dark);
}

.form-helper {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
}

/* Monitoring Card Layout */
.monitoring-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.monitoring-card {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.monitoring-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.hst-badge {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.hst-badge.orange { background: #fff7ed; border: 1px solid #ffedd5; }
.hst-badge.orange .hst-label { color: #f97316; }
.hst-badge.orange .hst-value { color: #ea580c; }

.hst-badge.green { background: #f0fdf4; border: 1px solid #dcfce7; }
.hst-badge.green .hst-label { color: #22c55e; }
.hst-badge.green .hst-value { color: #16a34a; }

/* Let's adjust to match user's screenshot more closely: Solid color background for label part or square */
.hst-badge {
    background: #f97316; /* Default orange */
    color: white;
}

.hst-badge .hst-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.9;
}

.hst-badge .hst-value {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.hst-badge.variant-orange { background: #f97316; }
.hst-badge.variant-green { background: #22c55e; }
.hst-badge.variant-teal { background: #14b8a6; }

.card-info {
    flex: 1;
}

.card-date {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.card-indicators {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #6b7280;
}

.indicator-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-status-icon {
    margin-left: 20px;
}

.status-icon-warning {
    width: 24px;
    height: 24px;
    color: #f59e0b;
}

.status-icon-check {
    width: 24px;
    height: 24px;
    color: #d1d5db;
}
/* Settings Page Styles */
.hst-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    color: #16a34a;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #dcfce7;
    transition: all 0.2s;
}

.hst-tag:hover {
    background: #dcfce7;
}

.hst-tag .delete-btn {
    cursor: pointer;
    opacity: 0.5;
    display: flex;
}

.hst-tag .delete-btn:hover {
    opacity: 1;
    color: #ef4444;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
