/* ====================================
   MINIMĀLISTISKS GALVENAIS STILS
   ==================================== */

   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f7fa;
    color: #2c3e50;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

/* Konteiners */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Header */
header {
    background: #95a5a6; /* Gaiši pelēks */
    border-bottom: 2px solid #bdc3c7;
    padding: 20px 30px;
}

header h1 {
    color: #2c3e50; /* Tumši pelēks teksts */
    font-size: 24px;
    font-weight: 600;
}

header nav .menu {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end; /* Poga labajā pusē */
}

header nav .menu-item {
    list-style: none;
}

header nav .menu-item a {
    color: white;
    background: #4a5859 ; /* Tumši pelēka/zila poga */
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 500;
    display: inline-block;
}

header nav .menu-item a:hover {
    background: #2c3e50; /* Vēl tumšāka uz hover */
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Main */
main {
    padding: 30px;
}

main h1 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
}

main h2 {
    color: #2c3e50;
    font-size: 20px;
    margin: 25px 0 15px;
}

main p {
    color: #5a6c7d;
    margin-bottom: 15px;
}

/* Pogu sadaļa */
.new-pass-btn,
.new-company-btn,
.button-section {
    margin-bottom: 20px;
    display: flex;
    gap: 10px; /* LABOTS */
    justify-content: flex-start;
}
/* Meklēšana */
.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.search-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #dfe4ea;
    border-radius: 4px;
    font-size: 14px;
}

.search-form input:focus {
    outline: none;
    border-color: #5a6c7d;
}

/* Tabulas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table thead {
    background: #f8f9fa;
}

table th {
    padding: 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #5a6c7d;
    border-bottom: 2px solid #e8ecef;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #f0f2f5;
    font-size: 14px;
}

table tbody tr:hover {
    background: #f8f9fa;
}

table td a {
    color: #3498db;
    text-decoration: none;
}

table td a:hover {
    text-decoration: underline;
}

/* Formas */
form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 6px;
    margin-top: 15px;
}

form label {
    display: block;
    margin-bottom: 6px;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dfe4ea;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: #5a6c7d;
}

form textarea {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 10px; /* LABOTS */
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8ecef;
    justify-content: flex-start;
}

/* Cards */
.card {
    background: white;
    border: 1px solid #e8ecef;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
}

.card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 16px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-info { background: #d1ecf1; color: #0c5460; }

/* Footer */
footer {
    background: #f8f9fa;
    color: #5a6c7d;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #e8ecef;
    font-size: 13px;
}

/* Responsīvs */
@media (max-width: 768px) {
    body { padding: 10px; }
    header { padding: 15px 20px; }
    main { padding: 20px; }
    header nav .menu { flex-direction: column; }
    table { font-size: 13px; }
    .form-actions { flex-direction: column; }
}