/* Müşteri Panel Modern CSS */

/* Sidebar Stiller */
.panel-sidebar {
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.sidebar-header {
    background: var(--primary-color);
    color: white;
    padding: 12px 15px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.sidebar-profile {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-profile .profile-img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.sidebar-profile .profile-info {
    flex: 1;
    min-width: 0;
}

.sidebar-profile .profile-info h4 {
    margin: 0 0 3px 0;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-profile .profile-info h4 a {
    color: #333;
    text-decoration: none;
}

.sidebar-profile .profile-info h4 a:hover {
    color: var(--primary-color);
}

.sidebar-profile .profile-info span {
    font-size: 10px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
}

.sidebar-menu .menu-item {
    display: flex;
    align-items: center;
    padding: 11px 15px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s ease;
    position: relative;
}

.sidebar-menu .menu-item:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    padding-left: 20px;
}

.sidebar-menu .menu-item i:first-child {
    width: 16px;
    margin-right: 10px;
    text-align: center;
    font-size: 13px;
    flex-shrink: 0;
}

.sidebar-menu .menu-item .arrow {
    margin-left: auto;
    font-size: 11px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.sidebar-menu .menu-item-danger {
    color: #dc3545;
    border-top: 1px solid #f0f0f0;
}

.sidebar-menu .menu-item-danger:hover {
    background: #fff5f5;
    color: #dc3545;
}

.sidebar-menu .submenu {
    background: #f8f9fa;
}

.sidebar-menu .submenu-item {
    display: block;
    padding: 9px 15px 9px 41px;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.sidebar-menu .submenu-item:last-child {
    border-bottom: none;
}

.sidebar-menu .submenu-item:hover {
    background: #e9ecef;
    color: var(--primary-color);
    padding-left: 46px;
}

.sidebar-menu .submenu-item i {
    margin-right: 6px;
    font-size: 11px;
}

/* Dropdown Arrow Animation */
.sidebar-menu .menu-item .arrow i {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Panel Header & Body */
.panel-header {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 4px 4px 0 0;
    margin-bottom: 0;
}

.panel-header h1 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.panel-header h1 i {
    margin-right: 8px;
}

.panel-header p {
    margin: 3px 0 0 0;
    opacity: 0.9;
    font-size: 12px;
}

.panel-body {
    background: white;
    padding: 20px;
    border-radius: 0 0 4px 4px;
    border: 1px solid #e0e0e0;
    border-top: none;
}

/* İstatistik Kartları */
.panel-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    transition: border-color 0.2s ease;
}

.stat-card:hover {
    border-color: var(--primary-color);
}

.stat-card-icon {
    width: 35px;
    height: 35px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 10px;
    background: #f5f5f5;
    color: var(--primary-color);
}

.stat-card-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.stat-card-label {
    font-size: 11px;
    color: #777;
    font-weight: 400;
    margin-bottom: 10px;
}

/* Panel Card */
.panel-card {
    background: white;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}

.panel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f5f5f5;
}

.panel-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.panel-card-title i {
    margin-right: 6px;
    color: var(--primary-color);
}

/* Tablo */
.panel-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.panel-table thead {
    background: #f8f9fa;
}

.panel-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: #555;
    border-bottom: 1px solid #e0e0e0;
}

.panel-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #444;
}

.panel-table tr:hover {
    background: #f8f9fa;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
}

.badge i {
    margin-right: 3px;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Butonlar */
.btn-panel {
    padding: 7px 14px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-panel i {
    margin-right: 4px;
}

.btn-panel-primary {
    background: var(--primary-color);
    color: white;
}

.btn-panel-primary:hover {
    background: #0052a3;
    color: white;
}

.btn-panel-secondary {
    background: #6c757d;
    color: white;
}

.btn-panel-secondary:hover {
    background: #5a6268;
    color: white;
}

.btn-panel-success {
    background: #28a745;
    color: white;
}

.btn-panel-success:hover {
    background: #218838;
    color: white;
}

.btn-panel-danger {
    background: #dc3545;
    color: white;
}

.btn-panel-danger:hover {
    background: #c82333;
    color: white;
}

/* Form */
.form-panel {
    max-width: 100%;
}

.form-panel-group {
    margin-bottom: 15px;
}

.form-panel-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.form-panel-input,
.form-panel-input select,
.form-panel-input textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-panel-input:focus,
.form-panel-input select:focus,
.form-panel-input textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0,102,204,0.1);
}

/* Alert */
.alert-panel {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 13px;
}

.alert-panel-success {
    background: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
}

.alert-panel-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
}

.alert-panel-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 3px solid #17a2b8;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 16px;
    color: #666;
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 12px;
    color: #999;
}


/* Responsive */
@media (max-width: 1200px) {
    .panel-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .panel-stats {
        grid-template-columns: 1fr;
    }
    
    .panel-table {
        font-size: 11px;
    }
    
    .panel-table th,
    .panel-table td {
        padding: 8px;
    }
    
    .panel-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
