* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header a {
    text-decoration: none;
    color: white;
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.search-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.search-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #e1e5e9;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    padding: 15px 30px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.search-btn:active {
    transform: translateY(0);
}

.results-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.results-section.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    border: 1px solid #e1e5e9;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.result-header {
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 15px;
}

.phone-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 5px;
}

.status-badge.positive {
    background: #d4edda;
    color: #155724;
}

.status-badge.negative {
    background: #f8d7da;
    color: #86541d;
}

.status-badge.fraud {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.unknown {
    background: #fff3cd;
    color: #856404;
}

.result-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.info-value {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.comments-section {
    border-top: 1px solid #e1e5e9;
    padding-top: 20px;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.comments-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.add-comment-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.add-comment-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.comment-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
}

.comment-form.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: #667eea;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 10px;
}

.btn-submit {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.comment {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
    color: #333;
}

.comment-date {
    font-size: 0.9rem;
    color: #666;
}

.comment-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.rating-label {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rating-label.positive {
    background: #d4edda;
    color: #155724;
}

.rating-label.negative {
    background: #f8d7da;
    color: #86541d;
}

.rating-label.fraud {
    background: #f8d7da;
    color: #721c24;
}

.stars {
    color: #ffc107;
}

.comment-text {
    color: #333;
    line-height: 1.5;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-results h3 {
    margin-bottom: 10px;
    color: #333;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
    font-size: 0.9rem;
    display: block;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
    font-size: 0.9rem;
    display: block;
}

.history-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: none;
}

.history-section.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e5e9;
}

.history-header h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.clear-history-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.clear-history-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.history-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.history-item-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.history-phone {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.history-details {
    font-size: 0.9rem;
    color: #666;
    margin-top: 2px;
}

.history-time {
    font-size: 0.8rem;
    color: #999;
}

.history-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.history-status.positive {
    background: #d4edda;
    color: #155724;
}

.history-status.negative {
    background: #f8d7da;
    color: #86541d;
}

.history-status.fraud {
    background: #f8d7da;
    color: #721c24;
}

.history-status.unknown {
    background: #fff3cd;
    color: #856404;
}

.no-history {
    text-align: center;
    padding: 30px;
    color: #666;
}

.no-history p {
    margin: 0;
    font-style: italic;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .search-container {
        flex-direction: column;
    }

    .result-info {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }
}