.opinie-form-container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.opinie-form-container h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: left;
}

.rating-stars {
    display: flex;
    gap: 5px;
}

.rating-stars .star {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-stars .star:hover,
.rating-stars .star.active {
    color: #ffc107;
}

.rating {
    display: flex;
    gap: 2px;
}

.rating .star {
    font-size: 16px;
    color: #ddd;
}

.rating .star.filled {
    color: #ffc107;
}

.opinie-display-container {
    margin: 20px 0;
}

.opinie-display-container h3 {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.display-description {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}

.form-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
}

.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.opinion-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.opinion-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
    border-color: #007bff;
}

.opinion-card:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Modal styling */
#opinionModal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

#opinionModal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 20px 25px;
    position: relative;
}

#opinionModal .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

#opinionModal .modal-title {
    font-weight: 700;
    font-size: 1.4rem;
    position: relative;
    z-index: 1;
    margin: 0;
}

#opinionModal .btn-close {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    padding: 0;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

#opinionModal .btn-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

#opinionModal .modal-body {
    padding: 30px;
    background: #fafbfc;
}

#opinionModal .modal-footer {
    background: #f8f9fa;
    border: none;
    padding: 20px 25px;
}

/* Opinion details styling */
.opinion-details {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.opinion-details .rating {
    font-size: 20px;
    margin: 8px 0 15px 0;
    text-align: center;
}

.opinion-details .rating .star {
    margin: 0 2px;
    filter: drop-shadow(0 2px 4px rgba(255,193,7,0.3));
}

/* Usunięto style h6 - nie są już potrzebne */

.opinion-details .opinion-text {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid #667eea;
    margin: 20px 0;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.opinion-details .opinion-text::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 3rem;
    color: #667eea;
    font-family: serif;
}

.opinion-details .opinion-text h6 {
    color: #495057;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
    text-align: left;
}

.opinion-details .opinion-text h6::after {
    display: none;
}

.opinion-details .opinion-text p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #495057;
    margin: 0;
    font-style: italic;
}

.opinion-details .text-muted {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #e9ecef;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    margin-top: 15px;
    color: #6c757d !important;
}

.opinion-details .text-muted i {
    margin-right: 8px;
    color: #667eea;
}

/* Belka z imieniem i datą */
.opinion-header-bar {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.opinion-author {
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.opinion-author .position {
    font-weight: 400;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.opinion-left {
    flex: 1;
}

.opinion-address {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 5px;
    display: flex;
    align-items: center;
}

.opinion-address i {
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

/* Ikona sklepu w kartach */
.text-muted i.fas.fa-store {
    margin-right: 6px;
    color: #6c757d;
    font-size: 0.9rem;
}

.opinion-rating-date {
    text-align: right;
}

.opinion-rating-date .rating {
    margin-bottom: 5px;
    justify-content: flex-end;
}

.opinion-rating-date .rating .star {
    margin: 0 1px;
    filter: drop-shadow(0 1px 2px rgba(255,255,255,0.3));
}

.opinion-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.opinion-date i {
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.8);
}

/* Loading spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
    border-color: #667eea;
    border-right-color: transparent;
}

/* Modal animations */
#opinionModal .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s ease-out;
}

#opinionModal.show .modal-dialog {
    transform: scale(1);
}

/* Responsive modal */
@media (max-width: 768px) {
    #opinionModal .modal-body {
        padding: 20px;
    }
    
    .opinion-details {
        padding: 20px;
    }
    
    .opinion-details h6 {
        font-size: 1.1rem;
    }
    
    .opinion-details .rating {
        font-size: 18px;
    }
}

/* Gwiazdki w tabeli administracyjnej */
.table .rating {
    font-size: 14px;
    margin-top: 5px;
}

.table .rating .star {
    font-size: 14px;
}

.card-title {
    font-weight: 600;
    color: #333;
}

.card-title .position {
    font-weight: 400;
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}

.card-text {
    color: #666;
    line-height: 1.6;
}

.badge {
    font-size: 0.75em;
}

.badge-success {
    background-color: #28a745;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

#opinie-message {
    font-weight: 500;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    padding: 10px 15px;
    border-radius: 5px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: 10px 15px;
    border-radius: 5px;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
    padding: 10px 15px;
    border-radius: 5px;
}

.form-control:focus,
.form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 10px 30px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Checkboxy regulamin i RODO */
.form-check {
    margin-bottom: 15px;
}

.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.form-check-input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.form-check-label a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Modale regulamin i RODO */
.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px 10px 0 0;
}

.modal-title {
    font-weight: 600;
}

.modal-body h6 {
    color: #495057;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-body h6:first-child {
    margin-top: 0;
}

.modal-body ul {
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 5px;
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
}

.table td {
    vertical-align: middle;
}

.form-select-sm {
    width: auto;
    min-width: 120px;
}

@media (max-width: 768px) {
    .opinie-form-container {
        margin: 10px;
        padding: 15px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}
