/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #0d4e41;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.logo-container {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 10px;
}

.logo-container h1 {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

/* Messages Section */
.messages-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.messages-list {
    margin-top: 20px;
}

.message-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.message-item:last-child {
    border-bottom: none;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 15px;
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.message-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.message-time {
    font-size: 12px;
    color: #666;
}

.message-text {
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
}

.message-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #888;
}

/* Media Section */
.media-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.media-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.media-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.media-preview {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #666;
}

.media-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.media-info p {
    font-size: 11px;
    color: #666;
}

/* Device Info Section */
.device-info-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    animation: pulse 2s infinite;
}

.status-indicator.online {
    color: #4CAF50;
    font-weight: 500;
}

.device-details {
    margin-top: 20px;
}

.device-info-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
}

.device-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-right: 15px;
}

.device-specs h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.device-specs p {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.device-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

.stat-value {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

/* Activity Icons */
.message-icon {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
}

.camera-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* User Info */
.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    font-size: 30px;
    color: white;
    margin-bottom: 10px;
}

.user-details {
    text-align: center;
    margin-bottom: 5px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.premium-badge {
    background-color: #4caf50;
    color: white;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
}

/* Main Navigation */
.main-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.main-nav ul {
    list-style: none;
}

.main-nav li {
    margin-bottom: 2px;
    transition: all 0.3s;
}

.main-nav li.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #4caf50;
}

.main-nav li:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.main-nav a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
}

.main-nav li.active a {
    color: white;
}

.main-nav a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: all 0.3s;
}

.logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.logout-btn i {
    margin-right: 10px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #f8f9fa;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: white;
    border-bottom: 1px solid #e9ecef;
}

.welcome-text h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.welcome-text p {
    font-size: 13px;
    color: #666;
}

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

.notification-bell {
    position: relative;
    margin-right: 20px;
    font-size: 18px;
    color: #555;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu {
    font-size: 13px;
    color: #666;
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.version-alert {
    display: flex;
    align-items: center;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.alert-icon {
    font-size: 20px;
    color: #856404;
    margin-right: 15px;
}

.alert-content {
    flex: 1;
}

.alert-content h3 {
    font-size: 16px;
    color: #856404;
    margin-bottom: 5px;
}

.alert-content p {
    font-size: 13px;
    color: #856404;
}

.buy-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.buy-btn:hover {
    background-color: #218838;
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background-color: white;
    border-radius: 5px;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.stat-card:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 18px;
}

.stat-card:nth-child(1) .stat-icon {
    background-color: #20c997;
}

.stat-card:nth-child(2) .stat-icon {
    background-color: #17a2b8;
}

.stat-card:nth-child(3) .stat-icon {
    background-color: #6610f2;
}

.stat-card:nth-child(4) .stat-icon {
    background-color: #dc3545;
}

.stat-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 12px;
    color: #666;
}

/* Content Sections */
.content-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.map-section, .activities-section {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.section-header h2 {
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
}

.section-header h2 i {
    margin-right: 8px;
    color: #0d4e41;
}

.map-controls {
    display: flex;
    gap: 5px;
}

.map-control-btn, .refresh-btn {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
}

.map-control-btn:hover, .refresh-btn:hover {
    background-color: #e9ecef;
}

.map-container {
    height: 300px;
    background-color: #f8f9fa;
}

/* Activities Section */
.activities-list {
    padding: 15px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-item:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
    font-size: 16px;
}

.phone-icon {
    background-color: #28a745;
}

.whatsapp-icon {
    background-color: #25D366;
}

.location-icon {
    background-color: #17a2b8;
}

.activity-details h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 3px;
    font-weight: 600;
}

.activity-details p {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.activity-time {
    font-size: 11px;
    color: #999;
    font-style: italic;
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .activity-list {
        grid-template-columns: 1fr;
    }
    
    .content-sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 10px;
    }
    
    .stat-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .stat-info h3 {
        font-size: 16px;
    }
    
    .stat-info p {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    body {
        overflow: auto;
    }
    
    .dashboard-container {
        flex-direction: column;
        height: auto;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .logo-container {
        display: flex;
        align-items: center;
        border-bottom: none;
        padding: 0;
    }
    
    .sidebar-logo {
        width: 70px;
        height: auto;
        margin-bottom: 0;
        margin-right: 10px;
        border-radius: 8px;
    }
    
    .logo-container h1 {
        font-size: 16px;
        display: none;
    }
    
    .user-info {
        display: none;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #0d4e41;
        z-index: 101;
        padding: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav li {
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav a {
        padding: 15px;
        justify-content: flex-start;
    }
    
    .main-nav a i {
        margin-right: 15px;
        width: 20px;
    }
    
    .sidebar-footer {
        display: none;
    }
    
    /* Mobil menü butonu */
    .mobile-menu-toggle {
        display: block;
        color: white;
        font-size: 24px;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 5px;
        transition: all 0.3s;
    }
    
    .mobile-menu-toggle:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
    
    .main-content {
        width: 100%;
    }
    
    .dashboard-content {
        padding: 15px 10px;
    }
    
    .version-alert {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    
    .alert-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .buy-btn {
        margin-top: 10px;
        width: 100%;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .content-sections {
        gap: 15px;
    }
    
    .section-header {
        padding: 10px;
    }
    
    .map-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        padding: 10px;
    }
    
    .welcome-text h2 {
        font-size: 16px;
    }
    
    .welcome-text p {
        font-size: 12px;
    }
    
    .notification-bell {
        margin-right: 10px;
    }
    
    .user-menu {
        font-size: 12px;
    }
    
    .stat-card {
        padding: 8px;
    }
    
    .stat-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
        margin-right: 10px;
    }
    
    .stat-info h3 {
        font-size: 14px;
    }
    
    .activity-item {
        padding: 8px;
    }
    
    .activity-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}
