/* Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* Alap stílusok */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    padding-left: 250px;
    background-color: #f5f7fa !important;
    min-height: 100vh;
    font-size: 14px;
}

.container {
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mobil nézet */
@media screen and (max-width: 768px), (orientation: landscape) and (max-height: 768px) {
    body {
        padding-left: 0;
        padding-bottom: 70px;
        width: 100%;
        overflow-x: hidden;
        font-size: 13px;
    }

    .container {
        width: 95%;
        padding: 10px;
        margin: 60px auto 10px auto !important;
    }

    /* Táblázatok reszponzívvá tétele */
    .data-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.8em;
    }

    /* Form elemek */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    select,
    textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Gombok */
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-edit,
    .btn-delete {
        display: inline-block;
        margin: 5px 0;
        white-space: nowrap;
    }

    /* Grid rendszerek */
    .company-info-grid,
    .limits-grid,
    .quick-actions,
    .recent-items {
        display: block;
        width: 100%;
    }

    .info-card {
        margin: 10px 0;
        width: 100%;
    }

    /* Fejlécek */
    h1, h2, h3 {
        font-size: 1.5em;
        margin: 10px 0;
    }

    /* Táblázat cellák */
    .data-table td, 
    .data-table th {
        padding: 8px;
        font-size: 0.9em;
    }
}

/* Űrlap stílusok */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Egységes táblázat stílusok */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 12px;
}

.data-table th,
.data-table td {
    padding: 8px;
    border: 1px solid #ddd;
    font-size: 12px;
}

/* Műveleti gombok egységes stílusai */
.btn-edit, .btn-delete, .btn-info {
    padding: 6px !important;
    margin: 0 1px !important;
    min-width: 24px;
    font-size: 12px;
}

.btn-edit i, .btn-delete i, .btn-info i {
    font-size: 12px;
}

/* Gombok */
button,
.btn-edit,
.btn-delete {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
}

button {
    background-color: #4CAF50;
    color: white;
}

.btn-edit {
    background-color: #2196F3;
    color: white;
    text-decoration: none;
}

.btn-delete {
    background-color: #f44336;
    color: white;
    text-decoration: none;
}

/* Admin navigáció */
.admin-nav {
    background-color: #333;
    padding: 10px 0;
}

.admin-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.admin-nav li {
    margin: 0 15px;
}

.admin-nav a {
    color: white;
    text-decoration: none;
}

/* Hibaüzenetek */
.error {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* Dashboard styles */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s;
}

.stat-box:hover {
    transform: translateY(-2px);
}

.stat-box h3 {
    color: #666;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #2196F3;
}

/* Ha közel vagyunk a limithez, más színt kap */
.stat-box.near-limit .stat-number {
    color: #ff9800;
}

/* Ha elértük a limitet, piros lesz */
.stat-box.at-limit .stat-number {
    color: #f44336;
}

.quick-actions {
    margin: 30px 0;
}

.btn-primary {
    background: #2196F3;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    margin-right: 10px;
}

.btn-secondary {
    background: #757575;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    margin-right: 10px;
}

.recent-items {
    margin-top: 30px;
}

.recent-items h2 {
    margin-bottom: 20px;
}

html, body {
    background-color: #f5f7fa !important;
}

.table {
    background-color: #ffffff;
}

.subscription-info {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9em;
}

.subscription-info strong {
    color: #2196F3;
}

.company-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.company-name {
    font-style: italic;
    margin: 0;
}

.plan-badge {
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
    display: inline-block;
    margin-left: 8px;
}

.plan-badge.lite {
    background-color: #78909C;
}

.plan-badge.pro {
    background-color: #2196F3;
}

.plan-badge.enterprise {
    background-color: #dc3545;
}

.remaining-items {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 20px;
    display: inline-block;
    font-size: 0.9em;
    color: #666;
}

.no-results {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

h1 {
    font-size: 1.6em;
}

h2 {
    font-size: 1.4em;
}

h3 {
    font-size: 1.2em;
}

.btn, 
.btn-primary, 
.btn-secondary,
.btn-edit,
.btn-delete,
.btn-info {
    font-size: 0.85em;
}

input, select, textarea {
    font-size: 0.9em;
}

.nav-text {
    font-size: 0.9em;
}
