/* Teklif Eklentisi Admin Styles */

/* Dashboard */
.teklif-dashboard {
    margin: 20px 0;
}

.teklif-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.teklif-stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #ddd;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s ease;
}

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

.teklif-stat-card.pending {
    border-left-color: #f59e0b;
}

.teklif-stat-card.approved {
    border-left-color: #10b981;
}

.teklif-stat-card.total {
    border-left-color: #3b82f6;
}

.teklif-stat-card.monthly {
    border-left-color: #8b5cf6;
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.stat-content h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #1f2937;
    margin: 5px 0;
}

.stat-amount {
    font-size: 14px;
    color: #059669;
    font-weight: 600;
}

/* Son teklifler */
.teklif-recent-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.teklif-recent-section h2 {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 18px;
}

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

.teklif-recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.teklif-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.teklif-info strong {
    color: #1f2937;
    font-size: 14px;
}

.customer-name {
    color: #6b7280;
    font-size: 13px;
}

.teklif-date {
    color: #9ca3af;
    font-size: 12px;
}

.teklif-amount {
    font-weight: bold;
    color: #059669;
    font-size: 14px;
}

/* Status badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-approved {
    background-color: #d1fae5;
    color: #065f46;
}

.status-rejected {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Filters */
.teklif-filters {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.teklif-filters a {
    padding: 8px 16px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.teklif-filters a:hover,
.teklif-filters a.current {
    background: #3b82f6;
    color: white;
}

/* Form styles */
.teklif-add-product-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.teklif-add-product-form h2 {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 782px) {
    .teklif-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .teklif-stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .teklif-recent-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .teklif-filters {
        flex-direction: column;
    }
    
    .teklif-filters a {
        text-align: center;
    }
}

/* Admin table enhancements */
.wp-list-table .column-primary {
    width: 20%;
}

.wp-list-table .manage-column {
    font-weight: 600;
    color: #1f2937;
}

/* Button styles */
.button.teklif-button {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.button.teklif-button:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.button.teklif-button-success {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.button.teklif-button-success:hover {
    background: #059669;
    border-color: #059669;
}

.button.teklif-button-danger {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.button.teklif-button-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* Loading states */
.teklif-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Notifications */
.teklif-notice {
    background: white;
    border-left: 4px solid #3b82f6;
    padding: 12px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.teklif-notice.success {
    border-left-color: #10b981;
}

.teklif-notice.error {
    border-left-color: #ef4444;
}

.teklif-notice.warning {
    border-left-color: #f59e0b;
}

/* Modal styles for admin */
.teklif-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.teklif-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.teklif-modal-close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
}

.teklif-modal-close:hover {
    color: #1f2937;
}

/* Settings page */
.teklif-settings-section {
    background: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.teklif-settings-section h2 {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    color: #1f2937;
}

/* Tooltips */
.teklif-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.teklif-tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #1f2937;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.teklif-tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Progress bar */
.teklif-progress {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.teklif-progress-bar {
    height: 100%;
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

/* Quick stats */
.teklif-quick-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.teklif-quick-stat {
    background: white;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 120px;
}

.teklif-quick-stat .number {
    font-size: 24px;
    font-weight: bold;
    color: #1f2937;
    display: block;
}

.teklif-quick-stat .label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

/* Teklif Detail Styles */
.teklif-detail-container {
    margin: 20px 0;
}

.teklif-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.teklif-detail-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.teklif-detail-section h2 {
    margin: 0 0 15px 0;
    color: #1f2937;
    font-size: 18px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.teklif-detail-actions {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.teklif-detail-actions .button {
    margin: 0 5px;
}

/* About Page Card Styles */
.card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin: 20px 0;
    padding: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.card h2, .card h3 {
    margin-top: 0;
    color: #23282d;
}

.form-table th {
    width: 200px;
}

.form-table td {
    color: #555;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .teklif-detail-grid {
        grid-template-columns: 1fr;
    }
}


/* Enhanced admin experience */
.teklif-admin-wrap .teklif-page-intro {
    max-width: 920px;
    margin: 8px 0 18px;
    color: #4b5563;
}
.teklif-dashboard-topbar,
.teklif-settings-hero,
.teklif-summary-grid,
.teklif-list-summary {
    display: grid;
    gap: 16px;
    margin: 0 0 20px;
}
.teklif-dashboard-topbar { grid-template-columns: 1.5fr 1fr; align-items: center; }
.teklif-settings-hero,
.teklif-summary-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.teklif-list-summary { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.teklif-quick-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.teklif-checklist-pill,
.teklif-mini-card,
.teklif-panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.teklif-checklist-pill { padding: 14px 16px; text-align: right; }
.teklif-mini-card { padding: 16px; }
.teklif-mini-card span { display: block; color: #6b7280; margin-bottom: 6px; }
.teklif-mini-card strong { font-size: 24px; color: #111827; }
.teklif-panel { padding: 18px; }
.teklif-panel h2 { margin-top: 0; font-size: 17px; }
.teklif-metric-list { margin: 0; }
.teklif-metric-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.teklif-metric-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.teklif-metric-list span { color: #6b7280; }
.teklif-checklist { margin: 0; }
.teklif-checklist li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.teklif-checklist.compact li { padding: 10px 0; }
.teklif-checklist li:last-child { border-bottom: 0; padding-bottom: 0; }
.teklif-checklist p { margin: 4px 0 0; color: #6b7280; }
.teklif-checklist .dashicon-wrapper { width: 28px; flex: 0 0 28px; }
.teklif-checklist .is-pending strong { color: #92400e; }
.teklif-search-inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.teklif-section-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.teklif-empty-state { padding: 24px; text-align: center; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; }
.teklif-empty-state p { margin-top: 0; }
@media (max-width: 782px) {
    .teklif-dashboard-topbar { grid-template-columns: 1fr; }
    .teklif-checklist-pill { text-align: left; }
    .teklif-search-inline { align-items: stretch; }
}
