/* Advanced Production Management - Frontend Styles */
.apm-frontend {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.apm-frontend-header {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.apm-frontend-header h1 {
    margin: 0 0 10px 0;
    color: #23282d;
    font-size: 2em;
}

.apm-frontend-header p {
    margin: 0;
    color: #666;
    font-size: 1.1em;
}

.apm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.apm-stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.apm-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.apm-stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

.apm-stat-card .stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #0073aa;
    line-height: 1;
}

.apm-content-section {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.apm-content-section h2 {
    margin: 0 0 20px 0;
    color: #23282d;
    font-size: 1.5em;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

/* Sipariş Takip Formu */
.apm-order-tracking {
    max-width: 500px;
    margin: 0 auto;
}

.apm-order-tracking-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.apm-order-tracking-form input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    font-size: 16px;
}

.apm-order-tracking-form button {
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.apm-order-tracking-form button:hover {
    background: #005a87;
}

.apm-order-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.apm-order-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.apm-order-info-item {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #0073aa;
}

.apm-order-info-item strong {
    display: block;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.apm-order-info-item span {
    font-size: 16px;
    color: #23282d;
    font-weight: 600;
}

/* Durum çubuğu */
.apm-status-timeline {
    position: relative;
    padding: 20px 0;
}

.apm-status-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e1e1e1;
}

.apm-status-step {
    position: relative;
    padding-left: 50px;
    margin-bottom: 20px;
}

.apm-status-step:last-child {
    margin-bottom: 0;
}

.apm-status-step::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e1e1e1;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e1e1e1;
}

.apm-status-step.active::before {
    background: #46b450;
    box-shadow: 0 0 0 2px #46b450;
}

.apm-status-step.completed::before {
    background: #0073aa;
    box-shadow: 0 0 0 2px #0073aa;
}

.apm-status-content {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.apm-status-title {
    font-weight: 600;
    color: #23282d;
    margin-bottom: 5px;
}

.apm-status-date {
    font-size: 12px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .apm-frontend {
        padding: 10px;
    }
    
    .apm-frontend-header {
        padding: 20px;
    }
    
    .apm-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .apm-content-section {
        padding: 20px;
    }
    
    .apm-order-tracking-form {
        flex-direction: column;
    }
    
    .apm-order-info {
        grid-template-columns: 1fr;
    }
}

/* Loading animasyonu */
.apm-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: apm-spin 1s linear infinite;
}

@keyframes apm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Butonlar */
.apm-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: center;
}

.apm-btn:hover {
    background: #005a87;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.apm-btn-block {
    display: block;
    width: 100%;
}

.apm-btn-success {
    background: #46b450;
}

.apm-btn-success:hover {
    background: #3a9542;
}

.apm-btn-warning {
    background: #ffb900;
}

.apm-btn-warning:hover {
    background: #d99e00;
}

/* Tablolar */
.apm-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.apm-table th,
.apm-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e1e1e1;
}

.apm-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #23282d;
}

.apm-table tr:hover {
    background: #f8f9fa;
}

/* Durum etiketleri */
.apm-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.apm-status-pending {
    background: #fff3cd;
    color: #856404;
}

.apm-status-in-progress {
    background: #d1ecf1;
    color: #0c5460;
}

.apm-status-completed {
    background: #d4edda;
    color: #155724;
}

.apm-status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Grid layout */
.apm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Kartlar */
.apm-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.apm-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.apm-card h3 {
    margin: 0 0 10px 0;
    color: #23282d;
    font-size: 1.2em;
}

.apm-card p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}