/* WOLFTERM Portal CSS - Yeni Tasarım */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
}

/* Portal Layout */
.portal-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.portal-header {
    background: #1a1a2e;
    color: white;
    padding: 0 20px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 24px;
    color: #4fc3f7;
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: #4fc3f7;
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-email {
    font-size: 14px;
    color: #ccc;
}

.language-select {
    background: transparent;
    border: 1px solid #444;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.language-select option {
    background: #1a1a2e;
    color: white;
}

/* Portal Body */
.portal-body {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 60px);
}

/* Sidebar */
.portal-sidebar {
    width: 250px;
    background: #16213e;
    color: white;
    padding: 0;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    color: #b8c5d6;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(255,255,255,0.05);
    color: white;
    text-decoration: none;
}

.nav-item.active .nav-link {
    background: rgba(79, 195, 247, 0.1);
    color: #4fc3f7;
    border-left-color: #4fc3f7;
}

.nav-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.nav-text {
    font-size: 14px;
    font-weight: 500;
}

/* Main Content */
.portal-main {
    flex: 1;
    background: white;
    display: flex;
    flex-direction: column;
}

.content-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    background: white;
}

.content-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.content-body {
    flex: 1;
    padding: 30px;
    background: #f8f9fa;
}

/* Orders Table */
.orders-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.orders-table thead {
    background: #f8f9fa;
}

.orders-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    font-size: 13px;
}

.orders-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
}

.orders-table tbody tr:hover {
    background: #f8f9fa;
}

.select-all {
    margin: 0;
}

.text-center {
    text-align: center;
}

.empty-state {
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state p {
    margin: 0;
    font-size: 16px;
}

/* Summary Section */
.summary-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.summary-value {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
    border-color: #545b62;
}

.btn-outline {
    background: transparent;
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline:hover {
    background: #6c757d;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portal-body {
        flex-direction: column;
    }
    
    .portal-sidebar {
        width: 100%;
        order: 2;
    }
    
    .portal-main {
        order: 1;
    }
    
    .content-body {
        padding: 15px;
    }
    
    .summary-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .orders-table-container {
        overflow-x: auto;
    }
    
    .orders-table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .header-right {
        flex-direction: column;
        gap: 5px;
    }
    
    .user-email {
        font-size: 12px;
    }
    
    .content-header {
        padding: 15px 20px;
    }
    
    .content-header h2 {
        font-size: 20px;
    }
}

/* Loading States */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scrollbar Styling */
.portal-sidebar::-webkit-scrollbar {
    width: 6px;
}

.portal-sidebar::-webkit-scrollbar-track {
    background: #1a1a2e;
}

.portal-sidebar::-webkit-scrollbar-thumb {
    background: #4fc3f7;
    border-radius: 3px;
}

.portal-sidebar::-webkit-scrollbar-thumb:hover {
    background: #29b6f6;
}