/**
 * AKOKVO Akreditacija - Public Styles
 * Brand Color: #e42e57
 */

:root {
    --akokvo-primary: #e42e57;
    --akokvo-dark: #c02548;
    --akokvo-light: #f8e7eb;
    --akokvo-gray: #6c757d;
    --akokvo-success: #28a745;
    --akokvo-warning: #ffc107;
    --akokvo-info: #17a2b8;
    --akokvo-danger: #dc3545;
}

/* Dashboard Container */
.akokvo-dashboard {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.akokvo-dashboard-header {
    background: linear-gradient(135deg, var(--akokvo-primary) 0%, var(--akokvo-dark) 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.akokvo-dashboard-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    color: white !important;
}

.akokvo-dashboard-header p {
    margin: 0;
    opacity: 0.9;
    color: white !important;
}
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

/* Filter Bar */
.akokvo-filter-bar {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.akokvo-filter-bar label {
    font-weight: 600;
    color: #333;
}

.akokvo-filter-bar select,
.akokvo-filter-bar input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Table Styles */
.akokvo-predmeti-table {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.akokvo-table {
    width: 100%;
    border-collapse: collapse;
}

.akokvo-table thead {
    background: var(--akokvo-primary);
    color: white;
}

.akokvo-table thead th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.akokvo-table tbody td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.akokvo-table tbody tr:hover {
    background: #f8f9fa;
}

.akokvo-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badge */
.akokvo-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

/* Buttons */
.akokvo-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.akokvo-btn-primary {
    background: var(--akokvo-primary);
    color: white;
}

.akokvo-btn-primary:hover {
    background: var(--akokvo-dark);
    color: white;
}

.akokvo-btn-secondary {
    background: var(--akokvo-gray);
    color: white;
}

.akokvo-btn-secondary:hover {
    background: #5a6268;
    color: white;
}

.akokvo-btn-warning {
    background: var(--akokvo-warning);
    color: #333;
}

.akokvo-btn-warning:hover {
    background: #e0a800;
    color: #333;
}

.akokvo-btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

.akokvo-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* No Predmeti */
.akokvo-no-predmeti {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.akokvo-no-predmeti p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

/* Statistics */
.akokvo-dashboard-stats {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.akokvo-dashboard-stats h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
}

.akokvo-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.akokvo-stat-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid var(--akokvo-primary);
}

.akokvo-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--akokvo-primary);
    margin-bottom: 5px;
}

.akokvo-stat-label {
    display: block;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modal Styles */
.akokvo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.akokvo-modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.akokvo-modal-large {
    max-width: 900px;
}

.akokvo-modal-content h3 {
    margin: 0 0 20px 0;
    color: var(--akokvo-primary);
    font-size: 24px;
}

.akokvo-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.akokvo-modal-close:hover {
    color: var(--akokvo-primary);
}

.akokvo-modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Messages */
.akokvo-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
}

.akokvo-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.akokvo-loading {
    background: #d1ecf1;
    color: #0c5460;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #17a2b8;
}

/* Form Elements */
.akokvo-modal-content input[type="file"],
.akokvo-modal-content input[type="text"],
.akokvo-modal-content input[type="date"],
.akokvo-modal-content textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 15px;
}

.akokvo-modal-content label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.akokvo-modal-content .description {
    font-size: 13px;
    color: #666;
    margin-top: -10px;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .akokvo-dashboard {
        padding: 10px;
    }
    
    .akokvo-table {
        font-size: 12px;
    }
    
    .akokvo-table thead th,
    .akokvo-table tbody td {
        padding: 10px 5px;
    }
    
    .akokvo-actions {
        flex-direction: column;
    }
    
    .akokvo-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .akokvo-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Activity Log Styles */
.akokvo-activity-log {
    margin-top: 20px;
}

.akokvo-log-entry {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 3px solid #e42e57;
    margin-bottom: 10px;
    border-radius: 4px;
}

.akokvo-log-icon {
    font-size: 24px;
    line-height: 1;
}

.akokvo-log-content {
    flex: 1;
}

.akokvo-log-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.akokvo-log-header strong {
    color: #1d2327;
    font-size: 14px;
}

.akokvo-log-user {
    color: #2271b1;
    font-size: 13px;
    font-weight: 600;
}

.akokvo-log-time {
    color: #646970;
    font-size: 12px;
    margin-left: auto;
}

.akokvo-log-changes {
    font-size: 13px;
    margin-bottom: 5px;
}

.akokvo-old-value {
    color: #c62828;
}

.akokvo-new-value {
    color: #2e7d32;
}

.akokvo-log-notes {
    font-size: 13px;
    color: #50575e;
    margin-top: 8px;
    padding: 8px;
    background: white;
    border-radius: 3px;
}

.akokvo-no-activity {
    text-align: center;
    padding: 30px;
    color: #646970;
    font-style: italic;
    background: #f6f7f7;
    border-radius: 4px;
}

/* ============================================
   Sakrij title sekciju na AKOKVO stranicama
   ============================================ */

/* AKOKVO stranice - sakrij cijeli title blok jer shortcode ima svoj header */
body.page-id-10125 .sc_layouts_title,
body.page-id-10209 .sc_layouts_title,
body.page-id-10234 .sc_layouts_title,
body.page-id-10236 .sc_layouts_title,
body.page-id-10255 .sc_layouts_title,
body.page-id-10260 .sc_layouts_title,
body.page-id-10292 .sc_layouts_title,
body.page-id-10316 .sc_layouts_title,
body.page-id-10319 .sc_layouts_title {
    display: none !important;
}

/* Backup: sakrij i title wrapper ako postoji */
body.page-id-10125 .post_content_title,
body.page-id-10209 .post_content_title,
body.page-id-10234 .post_content_title,
body.page-id-10236 .post_content_title,
body.page-id-10255 .post_content_title,
body.page-id-10260 .post_content_title,
body.page-id-10292 .post_content_title,
body.page-id-10316 .post_content_title,
body.page-id-10319 .post_content_title {
    display: none !important;
}
