#sahibinden-tracker-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    background: #f8f9fa;
    border-radius: 10px;
}

.tracker-search-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tracker-search-box h3 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
}

#ad-id-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

#ad-id-input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #0073aa;
    color: white;
}

.btn-primary:hover {
    background-color: #005a87;
    transform: translateY(-1px);
}

.btn-success {
    background-color: #46b450;
    color: white;
}

.btn-success:hover {
    background-color: #3a9640;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.help-text {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #0073aa;
    font-size: 14px;
}

.help-text p {
    margin: 5px 0;
}

.ad-info {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ad-header {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

#ad-image {
    width: 250px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.ad-details {
    flex: 1;
}

.ad-details h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 20px;
    line-height: 1.4;
}

.ad-details p {
    margin: 8px 0;
    font-size: 16px;
}

.price {
    font-size: 28px;
    font-weight: bold;
    color: #e74c3c;
    display: block;
    margin: 15px 0;
}

.ad-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.price-history {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.price-history h4 {
    margin-top: 0;
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
}

.chart-container {
    position: relative;
    height: 400px;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
}

.price-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.history-table {
    margin-top: 20px;
    overflow-x: auto;
}

#price-history-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

#price-history-table th,
#price-history-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#price-history-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #333;
    position: sticky;
    top: 0;
}

#price-history-table tr:hover {
    background-color: #f8f9fa;
}

.price-increase {
    color: #e74c3c;
    font-weight: bold;
}

.price-decrease {
    color: #27ae60;
    font-weight: bold;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
}

.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

#loading-indicator {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.info-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.info-section h4 {
    color: #856404;
    margin-top: 0;
    margin-bottom: 15px;
}

.info-section ul {
    color: #856404;
    margin: 0;
    padding-left: 20px;
}

.info-section li {
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #sahibinden-tracker-container {
        margin: 10px;
        padding: 15px;
    }
    
    .ad-header {
        flex-direction: column;
        gap: 15px;
    }
    
    #ad-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .ad-actions {
        justify-content: center;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .price-stats {
        grid-template-columns: 1fr;
    }
    
    #price-history-table {
        font-size: 14px;
    }
    
    #price-history-table th,
    #price-history-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .tracker-search-box h3 {
        font-size: 20px;
    }
    
    .ad-details h4 {
        font-size: 18px;
    }
    
    .price {
        font-size: 24px;
    }
    
    .chart-container {
        height: 300px;
    }
}

/* Print Styles */
@media print {
    #sahibinden-tracker-container {
        background: white;
        box-shadow: none;
    }
    
    .btn, .ad-actions {
        display: none;
    }
    
    .chart-container {
        display: none;
    }
}

/* 
 * Sahibinden Fiyat Takip Eklentisi
 * Geliştirici: Fatih
 * Sürüm: 1.2.0
 * Anti-bot bypass teknolojileri ile gelişmiş web scraping
 */
