/* Create-IT Console - Combined CSS */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary-color: #0058c9;
    --secondary-color: #009aa0;
    --dark-color: #222;
    --light-color: #e8ecf2;
    --accent-color: #5731a9;
    --gradient-start: #0058c9;
    --gradient-end: #009aa0;
    --gradient-head: #9d9aeb;
}

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

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
	max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ============================================
   HEADER
   ============================================ */
header {
    text-align: center;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--gradient-head), var(--gradient-end));
    color: var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;  
}

.logo {
    width: 150px;
    height: auto;
}

.imglogo {
    width: 35px;
    height: auto;
}

.title {
    font-size: 2rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    color: var(--light-color);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0rem;
    font-family: cursive;
    color: black;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    white-space: nowrap;
}

.divider {
    font-size: 35px;
    padding: 0 10px;
}

.logout-link {
    font-weight: bold;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color);
}

.section:last-child {
    border-left: 5px solid var(--secondary-color);
}

.section01 {
    background-color: #bbbdd7;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color);
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.section:last-child h2 {
    color: var(--secondary-color);
}

td {
    padding-right: 20px;
}

/* ============================================
   MONITORING SECTION
   ============================================ */
.monitoring-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.monitoring-section h2 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

.metric-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

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

.metric-card h3 {
    color: #667eea;
    margin: 0 0 15px 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.metric-value {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

.metric-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.chart-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.chart-wrapper {
    position: relative;
    height: 300px;
}

.process-table {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    overflow-x: auto;
}

.process-table h3 {
    color: #667eea;
    margin: 0 0 15px 0;
    font-size: 20px;
}

.process-table table {
    width: 100%;
    border-collapse: collapse;
}

.process-table th {
    background: #667eea;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.process-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
}

.process-table tr:hover {
    background: #f5f5f5;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.status-good { 
    background: #4caf50; 
    color: white; 
}

.status-warning { 
    background: #ff9800; 
    color: white; 
}

.status-critical { 
    background: #f44336; 
    color: white; 
}

.refresh-info {
    text-align: center;
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    margin-top: 15px;
}

/* ============================================
   LINK CARDS
   ============================================ */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.link-card {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.link-card a {
    display: block;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1.1rem;
}

.link-card i {
    display: block;
    margin-bottom: 0.7rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.section:last-child .link-card i {
    color: var(--secondary-color);
}

/* Kamatera Link Card */
.link-card-kamatera {
    background-color: #9cd7d4;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.link-card-kamatera:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.link-card-kamatera a {
    display: block;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1.1rem;
}

.link-card-kamatera i {
    display: block;
    margin-bottom: 0.7rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* AWS Link Card */
.link-card-aws {
    background-color: #FF9900;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.link-card-aws:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.link-card-aws a {
    display: block;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1.1rem;
}

.link-card-aws i {
    display: block;
    margin-bottom: 0.7rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.envspan {
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1.1rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    text-align: center;
    padding: 1.5rem;
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.9rem;
}

/* ============================================
   MEDIA QUERIES
   ============================================ */

/* Tablet and below */
@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .link-card {
        padding: 0.8rem;
    }
    
    .link-card i {
        font-size: 1.3rem;
    }
    
    .link-card a {
        font-size: 0.9rem;
    }
    
    /* Monitoring section mobile styles */
    .metrics-container {
        grid-template-columns: 1fr;
    }
    
    .monitoring-section h2 {
        font-size: 22px;
    }
    
    .monitoring-section {
        padding: 15px;
        margin: 10px 0;
    }
    
    .metric-value {
        font-size: 24px;
    }
    
    .chart-wrapper {
        height: 250px;
    }
    
    /* Navigation mobile styles */
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-links {
        gap: 10px;
    }
    
    .imglogo {
        max-width: 60px;
    }
    
    .divider {
        display: none;
    }
    
    .logout-link {
        align-self: flex-end;
    }
}

/* Small tablets */
@media (max-width: 600px) {
    .links-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .links-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .link-card {
        padding: 0.7rem;
    }
    
    .link-card i {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .link-card a {
        font-size: 0.85rem;
    }
}
