/* ======================== DASHBOARD SPECIFIČNIH STILOVA ======================== */

/* ======================== STATS GRID ======================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-left: 5px solid #3498db;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.stat-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card .number {
    font-size: 3em;
    font-weight: bold;
    color: #3498db;
}

/* ======================== CARDS ======================== */
.card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

/* ======================== TABELE ======================== */
table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: #2c3e50;
    color: white;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #ecf0f1;
}

tbody tr {
    transition: background-color 0.3s ease;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* ======================== ACTION BUTTONS ======================== */
.action-buttons {
    display: flex;
    gap: 5px;
}

.btn-edit,
.btn-delete,
.btn-view {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.btn-edit {
    background-color: #3498db;
    color: white;
}

.btn-edit:hover {
    background-color: #2980b9;
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background-color: #c0392b;
}

.btn-view {
    background-color: #27ae60;
    color: white;
}

.btn-view:hover {
    background-color: #229954;
}

/* ======================== MODAL ======================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #e74c3c;
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.1);
}

.modal-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.modal-header h2 {
    color: #2c3e50;
}

/* ======================== FORMA ======================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* ======================== BUTTONS ======================== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover {
    background-color: #229954;
}

.btn-secondary {
    background-color: #bdc3c7;
    color: #2c3e50;
}

.btn-secondary:hover {
    background-color: #95a5a6;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* ======================== STATUS BADGES ======================== */
.badge,
.status-badge,
.status-pending,
.status-active,
.status-ongoing,
.status-completed,
.status-cancelled,
.status-closed {
    padding: 0;
    background: none !important;
    background-color: transparent !important;
    color: #000 !important;
    font-size: 0.9em;
    font-weight: 700 !important;
    display: inline-block;
}

/* ======================== RESPONZIVNOST ======================== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        border-radius: 14px;
        padding: 16px;
    }

    table {
        font-size: 0.9em;
    }

    th, td {
        padding: 10px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .action-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 15px;
    }

    table {
        font-size: 0.8em;
    }

    th, td {
        padding: 8px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: var(--card); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }

table { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
tbody tr { background: white; box-shadow: var(--shadow); border-radius: var(--radius); }
td { padding: 15px; }

.badge, .status-badge, .status-pending, .status-active, .status-completed {
    padding: 0; background: none !important; background-color: transparent !important;
    color: #000 !important; font-size: 0.85rem; font-weight: 700 !important;
}

/* Uklanja podvlačenje sa same kartice i svih elemenata unutar nje */
.stat-card, 
.stat-card h3, 
.stat-card .number {
    text-decoration: none !important; 
    color: inherit; /* Ovo osigurava da tekst ne pozeleni/poplavi, već zadrži originalnu boju */
}