/* Site Admin Panel CSS */

.pth-site-admin {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pth-admin-header {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.pth-admin-header h1 {
    margin: 0 0 20px 0;
    color: #23282d;
    font-size: 24px;
}

.pth-admin-nav {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #ddd;
}

.pth-admin-nav a {
    padding: 10px 20px;
    text-decoration: none;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.pth-admin-nav a:hover,
.pth-admin-nav a.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.pth-admin-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Dashboard */
.pth-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.pth-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.pth-stat-card h3 {
    margin: 0;
    font-size: 32px;
    font-weight: bold;
}

.pth-stat-card p {
    margin: 5px 0 0 0;
    opacity: 0.9;
}

.pth-recent-activity h2 {
    margin-bottom: 20px;
    color: #23282d;
}

.pth-activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pth-activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.activity-icon {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

.activity-content strong {
    display: block;
    color: #23282d;
    margin-bottom: 5px;
}

.activity-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.activity-content small {
    color: #999;
    font-size: 12px;
}

/* Firmalar */
.pth-firms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.pth-firm-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.pth-firm-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.firm-header h3 {
    margin: 0 0 5px 0;
    color: #23282d;
}

.firm-email {
    color: #666;
    font-size: 14px;
}

.firm-stats {
    display: flex;
    gap: 20px;
    margin: 15px 0;
}

.firm-stats .stat {
    text-align: center;
}

.firm-stats .stat strong {
    display: block;
    font-size: 18px;
    color: #0073aa;
}

.firm-stats .stat span {
    font-size: 12px;
    color: #666;
}

.firm-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.firm-actions .button {
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.firm-actions .button:hover {
    background: #005a87;
}

.firm-jobs h4 {
    margin: 0 0 10px 0;
    color: #23282d;
    font-size: 16px;
}

.firm-jobs ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.firm-jobs li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.firm-jobs li:last-child {
    border-bottom: none;
}

.firm-jobs a {
    color: #0073aa;
    text-decoration: none;
}

.firm-jobs small {
    color: #999;
    font-size: 12px;
}

/* Tedarikçiler */
.pth-suppliers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.pth-supplier-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

.supplier-header h3 {
    margin: 0 0 5px 0;
    color: #23282d;
}

.supplier-email {
    color: #666;
    font-size: 14px;
}

.supplier-stats {
    display: flex;
    gap: 20px;
    margin: 15px 0;
}

.supplier-stats .stat {
    text-align: center;
}

.supplier-stats .stat strong {
    display: block;
    font-size: 18px;
    color: #0073aa;
}

.supplier-stats .stat span {
    font-size: 12px;
    color: #666;
}

.supplier-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.supplier-products h4 {
    margin: 0 0 15px 0;
    color: #23282d;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.product-item {
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    background: #f9f9f9;
}

.product-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.product-info {
    padding: 10px;
}

.product-info h5 {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.product-info h5 a {
    color: #23282d;
    text-decoration: none;
}

.price {
    color: #0073aa;
    font-weight: bold;
    margin: 5px 0;
    font-size: 14px;
}

.product-actions {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.button-small {
    padding: 4px 8px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
    border: none;
    cursor: pointer;
}

.button-small:hover {
    background: #005a87;
}

.more-products {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
}

/* Çalışanlar */
.pth-workers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.pth-worker-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

.worker-header h3 {
    margin: 0 0 5px 0;
    color: #23282d;
}

.worker-email {
    color: #666;
    font-size: 14px;
}

.worker-stats {
    display: flex;
    gap: 20px;
    margin: 15px 0;
}

.worker-actions {
    display: flex;
    gap: 10px;
}

/* Raporlar */
.pth-reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.report-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

.report-card h3 {
    margin: 0 0 15px 0;
    color: #23282d;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.report-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.report-card li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.report-card li:last-child {
    border-bottom: none;
}

/* Kullanıcı Profil Sayfası */
.pth-user-profile {
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.profile-header h2 {
    margin: 0 0 10px 0;
    color: #23282d;
}

.user-email {
    color: #666;
    margin: 5px 0;
}

.user-role {
    color: #0073aa;
    font-weight: bold;
    margin: 5px 0;
}

.profile-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    justify-content: center;
}

.profile-stats .stat {
    text-align: center;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-stats .stat strong {
    display: block;
    font-size: 24px;
    color: #0073aa;
}

.profile-stats .stat span {
    font-size: 14px;
    color: #666;
}

.jobs-grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.job-item,
.product-item {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 15px;
    background: #fff;
}

.job-item h5,
.product-item h5 {
    margin: 0 0 10px 0;
}

.job-item h5 a,
.product-item h5 a {
    color: #0073aa;
    text-decoration: none;
}

.job-item p,
.product-item p {
    margin: 10px 0;
    color: #666;
    line-height: 1.5;
}

.price {
    color: #0073aa;
    font-weight: bold;
    font-size: 16px;
}

.company-page-link,
.worker-profile-link {
    text-align: center;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .pth-admin-nav {
        flex-direction: column;
    }
    
    .pth-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .pth-firms-grid,
    .pth-suppliers-grid,
    .pth-workers-grid {
        grid-template-columns: 1fr;
    }
    
    .firm-actions,
    .supplier-actions,
    .worker-actions {
        flex-direction: column;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
} 