/* 
 * Telco Vision eSIM Web Yönetim Paneli Styles 
 * v2.0 - Modern UI (E-sim.pro görünümü)
 */

:root {
    --primary-color: #0d6efd;
    --primary-dark: #0b5ed7;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white-color: #ffffff;
}

/* Main styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f8fa;
    padding-top: 56px;
    margin: 0;
}

/* Header and navigation styles */
.main-header {
    background-color: var(--primary-color);
    color: white;
    height: 56px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-brand {
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.navbar-nav {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 1rem;
    text-decoration: none;
}

.navbar-nav .nav-link:hover {
    color: white;
}

.dropdown-menu {
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 5px;
}

/* Page layout */
.page-content {
    display: flex;
    min-height: calc(100vh - 56px);
}

.content-main {
    flex: 1;
    padding: 1.5rem;
}

.quick-access {
    width: 300px;
    background-color: #fff;
    border-left: 1px solid #e9ecef;
    padding: 1.5rem;
}

.quick-access h5 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: #495057;
}

.quick-access .list-group-item {
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.quick-access .list-group-item:hover {
    background-color: #f8f9fa;
}

.quick-access .list-group-item i {
    width: 24px;
}

/* Page title styles */
.page-title {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
}

.breadcrumb {
    margin-bottom: 0;
    font-size: 0.875rem;
    padding: 0;
    background-color: transparent;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Card styles */
.stat-card {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    background-color: white;
    position: relative;
    border: none;
    padding: 1.5rem;
    display: flex;
    align-items: center;
}

.stat-card.primary {
    border-left: 4px solid var(--primary-color);
}

.stat-card.success, .stat-card.info {
    border-left: 4px solid var(--info-color);
}

.stat-card.warning {
    border-left: 4px solid var(--warning-color);
}

.stat-card.danger {
    border-left: 4px solid var(--danger-color);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    margin-right: 1.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
}

.stat-card.primary .stat-icon {
    background-color: var(--primary-color);
}

.stat-card.success .stat-icon, .stat-card.info .stat-icon {
    background-color: var(--info-color);
}

.stat-card.warning .stat-icon {
    background-color: var(--warning-color);
}

.stat-card.danger .stat-icon {
    background-color: var(--danger-color);
}

.stat-card .stat-info {
    flex: 1;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: var(--dark-color);
}

.stat-card .stat-label {
    font-size: 1rem;
    margin: 0;
    color: var(--secondary-color);
}

.stat-card .stat-change {
    font-size: 0.875rem;
    margin: 0.25rem 0 0;
    color: var(--secondary-color);
}

.dashboard-card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    background-color: white;
}

.dashboard-card .card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-card .card-header .card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.dashboard-card .card-body {
    padding: 1.25rem;
}

/* Tables */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-top: none;
}

/* Form styles */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Progress bars */
.progress-slim {
    height: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
    background-color: #e9ecef;
}

/* Footer styles */
.footer {
    padding: 1rem 0;
    background-color: transparent;
    color: var(--secondary-color);
    font-size: 0.9rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

/* Activity Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background-color: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 40px;
}

.timeline-icon {
    position: absolute;
    left: 9px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    text-align: center;
    color: white;
    background-color: var(--primary-color);
    line-height: 22px;
    font-size: 12px;
    z-index: 1;
}

.timeline-icon.success {
    background-color: var(--success-color);
}

.timeline-icon.warning {
    background-color: var(--warning-color);
}

.timeline-icon.danger {
    background-color: var(--danger-color);
}

.timeline-icon.info {
    background-color: var(--info-color);
}

.timeline-content {
    padding: 15px;
    background-color: white;
    border-radius: 0.25rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.timeline-date {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.timeline-title {
    margin: 0 0 5px;
    font-size: 1rem;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .quick-access {
        width: 250px;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card .stat-icon {
        font-size: 2rem;
        margin-right: 1rem;
        width: 50px;
        height: 50px;
    }
    
    .stat-card .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .page-content {
        flex-direction: column;
    }
    
    .content-main {
        padding: 1rem;
    }
    
    .quick-access {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e9ecef;
    }
    
    .stat-card .stat-icon {
        font-size: 1.75rem;
        width: 45px;
        height: 45px;
    }
}
