/* Βασικό Στυλ */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    height: 100vh;
    overflow: hidden;
}

/* Basic Reset and Styling */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    height: 100%;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('/assets/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-container {
    background-color: #2c3e50;
    position: relative;
    z-index: 1;
    max-width: 400px;
    margin: auto;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    top: 50%;
    transform: translateY(-50%);
    text-align: center; /* Center content */
}

.login-container img {
    max-width: 250px;
    margin-bottom: 20px;
}

label {
    display: block;
    text-align: left;
    width: 100%;
    margin: 0 auto 5px auto;
    font-size: 16px;
}

.page .title {
    color: #0F4761;
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 10px;
}

.page ul {
    list-style: disc;
    padding-left: 30px;
}

.page ol {
    list-style-type: decimal;
    padding-left: 30px;
}

.page .subtitle {
    color: #0F4761;
    font-size: 20px;
    margin-bottom: 10px;
}

.page .black-subtitle {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 10px;
}

.page p, ul, ol {
    margin-bottom: 10px;
}
.page a {
    color: #0F4761;
    cursor: pointer;
}

.page img {
    display: inline;
}

input {
    width: 95%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 18px;
}

.error {
    color: red;
    margin-bottom: 20px;
}

@media (max-width: 500px) {
    .login-container {
        width: 90%;
        padding: 30px;
    }

    input, button {
        font-size: 14px;
        padding: 12px;
    }

    label {
        font-size: 14px;
    }
}

#app {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.c-container {
    flex: 1;
    display: flex;
    overflow: hidden;
    width: 100%;
}

.sidebar {
    width: 300px;
    background-color: #2c3e50;
    color: white;
    padding: 15px 15px 0 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow-y: auto;
}

.sidebar h2 {
    margin-top: 10px;
    text-align: center;
    width: 100%;
}

.logo {
    width: 150px;
    margin-bottom: 20px;
    align-self: center;
}

.input-controls{
    background-color:#2c3e50;
    height: 130px;
}

.content {
    flex: 1;
    height: calc(100vh - 30px);
}

footer {
    background-color: #2c3e50;
    padding: 0px;
    text-align: center;
    color: white;
    width: 100%;
}

.sidebar ul {
    list-style-type: none;
    padding-left: 0;
    width: 100%;
}

.sidebar li {
    margin: 0 0;
    padding: 5px;
    font-size: 14px;
    border-radius: 4px;
    text-align: left;
}

/* Enhanced Hover and Active States */

.report-link {
    display: block;
    padding: 8px 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.report-link:hover {
    background-color: #2980b9;
    transform: translateX(5px);
}

/* Active states only for Πίνακας Ελέγχου and subcategories */
.sidebar span[v-if].active,
.sidebar span[v-if].active:hover,
.report-link.active,
.report-link.active:hover {
    background-color: #2980b9;
    transform: none;
    cursor: default;
}

/* IFrame Styles */
.iframe-dashboard-container {
    width: 100%;
    height: calc(100vh - 245px);
    border: none;
}


/* IFrame Styles */
.iframe-container {
    width: 100%;
    height: calc(100vh - 145px);
    border: none;
}

/* Dashboard Styles */
.dashboard-container {
    width: 100%;
    height: calc(100vh - 150px);
    overflow: auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    height: 100%;
}

.dashboard-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.dashboard-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.zoom-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 4px;
}

.zoom-controls button {
    margin: 0 2px;
    padding: 5px 10px;
    cursor: pointer;
    border: 1px solid #ccc;
    background: white;
    border-radius: 3px;
}

.zoom-controls button:hover {
    background: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 500px) {
    .sidebar {
        width: 150px;
    }
    .sidebar h2 {
        font-size: 16px;
    }
    .sidebar li {
        font-size: 12px;
    }
    .sidebar .logo {
        width: 180px;
    }
    .button-group button,
    .export-group button {
        padding: 8px 12px;
        font-size: 14px;
    }
}
