/* Umumiy sozlamalar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    background-color: #f4f7fa;
    height: 100vh;
}

/* Sidebar stillari */
.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    display: flex;
    flex-direction: column;
}

.sidebar .logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #34495e;
}

.sidebar .menu {
    list-style: none;
    margin-top: 20px;
}

.sidebar .menu li a {
    display: block;
    padding: 15px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: 0.3s;
}

.sidebar .menu li a:hover, .sidebar .menu li.active a {
    background-color: #34495e;
    border-left: 5px solid #3498db;
}

.sidebar .menu li a i {
    margin-right: 10px;
}

/* Asosiy kontent */
.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.user-profile img {
    border-radius: 50%;
}

/* Dashboard kartalari */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
}

.card h3 {
    font-size: 14px;
    color: #7f8c8d;
}

.card .number {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    margin: 10px 0;
}

.card .status.up {
    color: #27ae60;
    font-size: 14px;
}

/* Grafik qutisi */
.charts-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
/* Oldingi style.css ga qo'shimcha */

/* Jadvallar (BPL, Admin uchun) */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    overflow: hidden;
}

.styled-table thead tr {
    background-color: #2c3e50;
    color: #ffffff;
    text-align: left;
}

.styled-table th, .styled-table td {
    padding: 12px 15px;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

/* Tugmalar */
.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    color: white;
    font-size: 14px;
    display: inline-block;
}

.btn-primary { background-color: #3498db; }
.btn-success { background-color: #27ae60; }
.btn-danger { background-color: #e74c3c; }

/* Formalar (Login, EPA uchun) */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}