/* Uždek Lietuvą - Frontend Styles */

/* Map Container */
.uzlek-map-container {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Map Stats */
.uzlek-map-stats {
    background: linear-gradient(135deg, #c9b037, #fdd835);
    color: #1b5e20;
    padding: 15px 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.uzlek-map-stats-inner {
    display: flex;
    width: 100%;
    justify-content: space-around;
}

.uzlek-map-stat {
    text-align: center;
}

.uzlek-map-stat-number {
    display: block;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.uzlek-map-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Map */
.uzlek-map {
    position: relative;
    background: #f5f5f5;
    border: none;
}

.uzlek-map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    color: #666;
}

/* Map Controls */
.uzlek-map-controls {
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding: 20px;
}

.uzlek-map-controls-inner {
    max-width: 800px;
    margin: 0 auto;
}

/* QR Input Form */
.uzlek-qr-input {
    margin-bottom: 20px;
}

.uzlek-qr-input h4 {
    margin-top: 0;
    color: #1b5e20;
    font-size: 18px;
}

/* Point Form */
.uzlek-point-form {
    margin-bottom: 20px;
}

.uzlek-point-form h4 {
    margin-top: 0;
    color: #1b5e20;
    font-size: 18px;
}

.uzlek-form-group {
    margin-bottom: 15px;
}

.uzlek-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.uzlek-form-group input[type="text"],
.uzlek-form-group input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.uzlek-form-group input:focus {
    outline: none;
    border-color: #fdd835;
    box-shadow: 0 0 0 2px rgba(253, 216, 53, 0.2);
}

.uzlek-form-group input[readonly] {
    background-color: #f9f9f9;
    color: #666;
}

/* Form Actions */
.uzlek-form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* Buttons */
.uzlek-btn-primary,
#uzlek-validate-code,
#uzlek-place-point,
#uzlek-start-process {
    background: linear-gradient(135deg, #c9b037, #fdd835);
    color: #1b5e20;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.uzlek-btn-primary:hover,
#uzlek-validate-code:hover,
#uzlek-place-point:hover,
#uzlek-start-process:hover {
    background: linear-gradient(135deg, #b8941f, #f9c842);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 176, 55, 0.3);
}

#uzlek-cancel-point {
    background: #f5f5f5;
    color: #666;
    border: 2px solid #e0e0e0;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#uzlek-cancel-point:hover {
    background: #eeeeee;
    border-color: #ccc;
}

/* Map Filters */
.uzlek-map-filters {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.uzlek-map-filters label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.uzlek-map-filters input[type="checkbox"] {
    margin: 0;
}

/* Statistics Shortcode */
.uzlek-stats {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.uzlek-stats-horizontal {
    display: flex;
    flex-wrap: wrap;
}

.uzlek-stats-vertical .uzlek-stat-item {
    border-bottom: 1px solid #e0e0e0;
}

.uzlek-stats-vertical .uzlek-stat-item:last-child {
    border-bottom: none;
}

.uzlek-stat-item {
    padding: 20px;
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.uzlek-stats-horizontal .uzlek-stat-item {
    border-right: 1px solid #e0e0e0;
}

.uzlek-stats-horizontal .uzlek-stat-item:last-child {
    border-right: none;
}

.uzlek-stat-item h3 {
    margin: 0 0 10px 0;
    color: #1b5e20;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.uzlek-stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #c9b037;
    line-height: 1;
    margin-bottom: 5px;
    display: block;
}

.uzlek-stat-label {
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.uzlek-stat-breakdown {
    margin-top: 10px;
}

.uzlek-stat-type {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}

.uzlek-stat-type-label {
    color: #666;
}

.uzlek-stat-type-number {
    font-weight: bold;
    color: #1b5e20;
}

/* Recent Activity */
.uzlek-recent-activity {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.uzlek-recent-activity h3 {
    margin-top: 0;
    color: #1b5e20;
    border-bottom: 2px solid #fdd835;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.uzlek-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.uzlek-activity-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.uzlek-activity-item:last-child {
    border-bottom: none;
}

.uzlek-activity-donor {
    display: flex;
    align-items: center;
    gap: 10px;
}

.uzlek-activity-donor strong {
    color: #1b5e20;
}

.uzlek-activity-type {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.uzlek-type-first_time {
    background: #e8f5e8;
    color: #2e7d32;
}

.uzlek-type-returning {
    background: #fff3e0;
    color: #f57c00;
}

.uzlek-type-yearly {
    background: #e3f2fd;
    color: #1976d2;
}

.uzlek-activity-location {
    color: #666;
    font-size: 14px;
}

.uzlek-activity-time {
    color: #999;
    font-size: 12px;
    font-style: italic;
}

.uzlek-no-activity {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px;
}

/* Success/Error Messages */
.uzlek-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

.uzlek-message-success {
    background: #e8f5e8;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.uzlek-message-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.uzlek-message-info {
    background: #e3f2fd;
    color: #1976d2;
    border-left: 4px solid #2196f3;
}

/* Map Error States */
.uzlek-map-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #ffebee;
    border: 2px dashed #f44336;
    color: #c62828;
    font-weight: 500;
    text-align: center;
    padding: 20px;
    border-radius: 4px;
}

/* QR Code Display */
.uzlek-qr-display {
    text-align: center;
    padding: 10px;
}

.uzlek-qr-display img {
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.uzlek-qr-display img:hover {
    transform: scale(1.05);
    border-color: #fdd835;
}

/* QR Actions */
.uzlek-codes-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.uzlek-codes-actions .button {
    background: linear-gradient(135deg, #c9b037, #fdd835);
    color: #1b5e20;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.uzlek-codes-actions .button:hover {
    background: linear-gradient(135deg, #b8941f, #f9c842);
    color: #1b5e20;
}

/* Status badges */
.uzlek-status-active {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.uzlek-status-inactive {
    background: #ffebee;
    color: #c62828;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.uzlek-status-used {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.uzlek-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.uzlek-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fdd835;
    border-radius: 50%;
    border-top-color: transparent;
    animation: uzlek-spin 1s linear infinite;
}

@keyframes uzlek-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .uzlek-map-stats {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .uzlek-stats-horizontal {
        flex-direction: column;
    }
    
    .uzlek-stats-horizontal .uzlek-stat-item {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .uzlek-stats-horizontal .uzlek-stat-item:last-child {
        border-bottom: none;
    }
    
    .uzlek-map-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .uzlek-form-actions {
        flex-direction: column;
    }
    
    .uzlek-activity-donor {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .uzlek-stat-number {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .uzlek-map-controls {
        padding: 15px;
    }
    
    .uzlek-stat-item {
        padding: 15px;
    }
    
    .uzlek-stat-number {
        font-size: 24px;
    }
    
    .uzlek-recent-activity {
        padding: 15px;
    }
}

/* Print Styles */
@media print {
    .uzlek-map-controls,
    .uzlek-map-filters,
    .uzlek-form-actions {
        display: none !important;
    }
    
    .uzlek-map-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .uzlek-stats,
    .uzlek-recent-activity {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}
