@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --bg-gradient-start: #EEF2FF;
    --bg-gradient-end: #C7D2FE;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-main: #1F2937;
    --text-muted: #6B7280;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.monitoring-container {
    max-width: 900px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}

h1, h2 {
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-main);
}

p.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 10px;
    background: rgba(255,255,255,0.6);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.file-upload-wrapper {
    position: relative;
    width: 100%;
    height: 100px;
    border: 2px dashed #9CA3AF;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.file-upload-wrapper:hover {
    border-color: var(--primary);
    background: rgba(255,255,255,0.7);
}

.file-upload-wrapper.has-file {
    border: 2px solid #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
    background: rgba(240, 253, 244, 0.6);
}

.file-upload-wrapper.no-file {
    border: 2px solid #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
    background: rgba(254, 242, 242, 0.6);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23);
}

.btn-secondary {
    background: #F3F4F6;
    color: var(--text-main);
    margin-top: 10px;
}

.btn-secondary:hover {
    background: #E5E7EB;
}

.image-preview-container {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.image-preview {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 2px solid white;
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-error {
    background-color: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #F87171;
}

.alert-success {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #34D399;
}

/* Monitoring Table */
.table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.5);
    border-radius: 12px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

th {
    background: rgba(255,255,255,0.8);
    font-weight: 600;
}

tr:hover {
    background: rgba(255,255,255,0.7);
}

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background: #FEF3C7;
    color: #B45309;
}

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
}

 . p r o g r e s s - c o n t a i n e r   { 
         w i d t h :   1 0 0 % ; 
         b a c k g r o u n d - c o l o r :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 4 ) ; 
         b o r d e r - r a d i u s :   1 0 p x ; 
         m a r g i n - t o p :   1 5 p x ; 
         d i s p l a y :   n o n e ; 
         o v e r f l o w :   h i d d e n ; 
 } 
 
 . p r o g r e s s - b a r   { 
         w i d t h :   0 % ; 
         h e i g h t :   1 5 p x ; 
         b a c k g r o u n d - c o l o r :   v a r ( - - p r i m a r y ) ; 
         b o r d e r - r a d i u s :   1 0 p x ; 
         t r a n s i t i o n :   w i d t h   0 . 3 s   e a s e ; 
 } 
 
 . p r o g r e s s - t e x t   { 
         t e x t - a l i g n :   c e n t e r ; 
         f o n t - s i z e :   0 . 8 5 r e m ; 
         m a r g i n - t o p :   5 p x ; 
         c o l o r :   v a r ( - - t e x t - m u t e d ) ; 
         d i s p l a y :   n o n e ; 
 }  
 