/* PC Status Page Specific Styles */

/* Back Button */
.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
}

.back-button i {
    font-size: 1rem;
}

/* System Info Section */
.system-info-section {
    margin-bottom: 30px;
}

/* Temperature Section */
.temperature-section {
    margin-bottom: 30px;
}

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

.temperature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.temperature-card:hover {
    transform: translateY(-5px);
}

.temperature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
}

.temperature-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 600;
}

.temperature-value {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.temperature-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    color: rgba(255, 154, 158, 0.3);
}

.temperature-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    transition: background-color 0.3s ease;
}

.status-indicator.ok {
    background: #4ecdc4;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.status-indicator.error {
    background: #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

#rpi-status-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

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

.system-info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.system-info-card:hover {
    transform: translateY(-5px);
}

.system-info-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.system-info-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    word-break: break-all;
}

/* CPU Section */
.cpu-section {
    margin-bottom: 30px;
}

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

.cpu-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cpu-card:hover {
    transform: translateY(-5px);
}

.cpu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.cpu-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 600;
}

.cpu-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.cpu-progress {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.cpu-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.cpu-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: rgba(255, 107, 107, 0.3);
}

/* Memory Section */
.memory-section {
    margin-bottom: 30px;
}

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

.memory-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.memory-card:hover {
    transform: translateY(-5px);
}

.memory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.memory-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 600;
}

.memory-value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.memory-progress {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.memory-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.memory-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: rgba(78, 205, 196, 0.3);
}

/* Disk Section */
.disk-section {
    margin-bottom: 30px;
}

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

.disk-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.disk-card:hover {
    transform: translateY(-5px);
}

.disk-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #feca57, #ff9ff3);
}

.disk-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 600;
}

.disk-value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.disk-progress {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.disk-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.disk-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: rgba(254, 202, 87, 0.3);
}

/* Processes Section */
.processes-section {
    margin-bottom: 30px;
}

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

.process-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.process-card:hover {
    transform: translateY(-5px);
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #a55eea, #26de81);
}

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

.process-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    word-break: break-all;
}

.process-pid {
    font-size: 0.8rem;
    color: #666;
    background: rgba(0, 0, 0, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
}

.process-memory {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.process-memory-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.process-memory-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

.process-memory-percent {
    font-size: 0.9rem;
    color: #666;
    background: rgba(165, 94, 234, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
}

.process-memory-mb {
    font-size: 0.9rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cpu-grid,
    .memory-grid,
    .disk-grid,
    .system-info-grid,
    .temperature-grid {
        grid-template-columns: 1fr;
    }
    
    .processes-grid {
        grid-template-columns: 1fr;
    }
    
    .cpu-value,
    .memory-value,
    .disk-value,
    .temperature-value {
        font-size: 1.8rem;
    }
    
    .system-info-value {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 15px;
    }
    
    .cpu-card,
    .memory-card,
    .disk-card,
    .process-card,
    .system-info-card,
    .temperature-card {
        padding: 20px;
    }
    
    .cpu-value,
    .memory-value,
    .disk-value,
    .temperature-value {
        font-size: 1.5rem;
    }
}

/* CPU ve RAM Birleşik Bölüm */
.cpu-memory-section {
    margin-bottom: 30px;
}

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

.cpu-memory-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cpu-memory-card:hover {
    transform: translateY(-5px);
}

.cpu-memory-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.cpu-memory-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.cpu-memory-progress {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.cpu-memory-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.cpu-memory-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    color: rgba(78, 205, 196, 0.3);
}

.processes-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.processes-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Network Section */
.network-section {
    margin-bottom: 30px;
}

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

.network-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.network-card:hover {
    transform: translateY(-5px);
}

.network-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.network-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    word-break: break-all;
}

.network-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    color: rgba(102, 126, 234, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 20px;
}

/* Process Grid in Modal */
.processes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.process-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #4ecdc4;
}

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

.process-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.process-pid {
    font-size: 0.8rem;
    color: #666;
    background: rgba(78, 205, 196, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

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

.process-memory-label {
    font-size: 0.8rem;
    color: #666;
}

.process-memory-value {
    font-weight: 600;
    color: #333;
}

.process-memory-percent {
    font-weight: 700;
    color: #4ecdc4;
    font-size: 1.1rem;
}

.no-processes {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .processes-grid {
        grid-template-columns: 1fr;
    }
}
