
body {
   font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    text-align: center;
    color: #709eca;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input, textarea, button {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

button {
    background-color: #709eca;
    color: white;
    cursor: pointer;
    border: none;
}

button:hover {
    background-color: #4343cc;
}

.navbar {
    background-color: #709eca;
    color: white;
    padding: 10px;
    text-align: center;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

.navbar a:hover {
    text-decoration: underline;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

table th {
    background-color: #f4f4f9;
    font-weight: bold;
}

table td input, table td textarea {
    width: 100%;
    padding: 5px;
    font-size: 14px;
}

button {
    background-color: #709eca;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #4343cc;
}
/* Stilizare pentru literele grupate */
.letter-group {
    margin-bottom: 30px;
}

.letter-header {
    font-size: 24px;
    color: #709eca;
    margin-bottom: 10px;
}

/* Stilizare pentru tabele */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

table th {
    background-color: #f4f4f9;
    font-weight: bold;
}


.export-container {
    text-align: right;
    margin-bottom: 20px;
}

.export-button {
    background-color: #709eca;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.export-button:hover {
    background-color: #4343cc;
}


.total-words {
    text-align: right;
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}
/* Bara de navigare */
.navbar {
    background-color: #709eca;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: normal;
}

.nav-links li a:hover {
    text-decoration: underline;
}

/* Navigare responsive */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle .bar {
    background-color: white;
    height: 3px;
    margin: 3px 0;
    width: 25px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #709eca;
        position: absolute;
        top: 50px;
        left: 0;
        padding: 10px 0;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }
}


/* Stilizare generală pentru input-uri și select */
.input-field {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.input-field:focus {
    border-color: #709eca;
    outline: none;
    box-shadow: 0 0 5px rgba(93, 93, 255, 0.5);
}

/* Stilizare pentru checkbox GDPR */
.gdpr-label {
    font-size: 14px;
    margin-top: 10px;
    display: block;
}

/* Containerele literelor */
.letter-group {
    margin-bottom: 30px;
}

/* Header pentru fiecare literă */
.letter-header {
    font-size: 24px;
    color: #709eca;
    margin-bottom: 10px;
}

/* Container pentru tabel responsive */
.table-responsive {
    overflow-x: auto; /* Activează scroll-ul orizontal */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling pentru iOS */
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Stiluri pentru tabele */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Uniformizează coloanele */
}

.responsive-table th, .responsive-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
    word-wrap: break-word; /* Previne depășirea coloanelor */
}

.responsive-table th {
    background-color: #f4f4f9;
    font-weight: bold;
    text-align: center;
}

/* Stiluri responsive */
@media (max-width: 768px) {
    .responsive-table th, .responsive-table td {
        font-size: 14px;
        padding: 8px;
    }

    .letter-header {
        font-size: 20px;
    }
}

/* Secțiunea pentru numărul total de cuvinte */
.user-word-count {
    text-align: right;
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

/* Secțiunea despre proiect*/
.about-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    line-height: 1.6;
    font-size: 16px;
    color: #333;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.about-section h2 {
    color: #5d5dff;
    margin-top: 20px;
}

.about-section h3 {
    color: #333;
    margin-top: 20px;
}

.about-section p {
    margin-bottom: 15px;
}

.about-section .date {
    font-style: italic;
    color: #666;
}

.about-section blockquote {
    font-size: 16px;
    font-style: italic;
    background-color: #fff;
    padding: 10px 15px;
    margin: 15px 0;
    border-left: 4px solid #5d5dff;
    color: #444;
}

.about-section .author {
    font-weight: bold;
    margin-top: 20px;
    color: #444;
    text-align: right;
}

.logo-container {
    text-align: center;
    margin-top: 20px;
}

.logo-container img.responsive-logo {
    max-width: 20%;
    height: auto;
    display: inline-block;
    border: none;
}

/*GDPR*/
.gdpr-content {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    line-height: 1.6;
    font-size: 16px;
    color: #333;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.gdpr-content h2 {
    color: #5d5dff;
    margin-top: 20px;
    font-size: 20px;
}

.gdpr-content ul {
    list-style-type: disc;
    margin-left: 20px;
}

.gdpr-content ul li {
    margin-bottom: 10px;
    font-size: 16px;
}

/*
.footer {
    background-color: #709eca;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    font-size: 14px;
}*/



.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 40px;
}

.stats-table th, .stats-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.stats-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.stats-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.stats-table tr:hover {
    background-color: #f1f1f1;
}


.letter-filter {
    margin-bottom: 20px;
}

.letter-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.letter-list li {
    display: inline;
}

.letter-list a {
    text-decoration: none;
    color: #007bff;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.letter-list a:hover,
.letter-list a.active {
    background-color: #007bff;
    color: white;
}



/* Fixed navbar styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #709eca;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.nav-logo a {
    text-decoration: none;
    font-size: 1.5em;
    color: white;
}

.nav-links {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1em;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #f4f4f9;
}

/* Mobile toggle button */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
}

/* Responsive styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #709eca;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        padding: 10px 0;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }
}



footer {
    width: 100%;
    background-color: #709eca;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

footer a {
    color: #00bcd4;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    footer {
        font-size: 14px;
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    footer {
        font-size: 12px;
        padding: 8px 0;
    }
}
/* Custom alert styles */
.alert {
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    font-size: 16px;
    width: 80%;
    max-width: 500px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-block;
    z-index: 9999;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInOut 5s forwards;
}

.alert-success {
    background-color: #4CAF50;
    color: white;
}

.alert-error {
    background-color: #f44336;
    color: white;
}

.alert-info {
    background-color: #2196F3;
    color: white;
}

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

/* Keyframes for fading effect */
@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}
/* Stiluri pentru câmpurile de editare */


textarea:focus {
    border-color: #4caf50;
    background-color: #e8f5e9;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Efect de mărire lină a câmpului */
textarea.expanded {
    height: 100px; /* Dimensiune mai mare */
    transition: height 0.3s ease;
}

/* Când utilizatorul face clic în afară, câmpul revine la dimensiunea inițială 
textarea:not(:focus) {
    height: 100px; /* Dimensiune standard pentru textarea 
}*/

/* Stiluri suplimentare pentru interfețe mobile */
@media (max-width: 600px) {
    textarea {
        font-size: 14px; /* Font mai mic pe mobil */
        height: 50px;
        width: 300px; /* Asigurăm că textarea are o înălțime inițială pe mobil */
    }
}


@media (max-width: 768px) {
   textarea.expanded {
    height: 100px; 
    width: 250px;/* Dimensiune mai mare */
    transition: height 0.3s ease;
}
}

@media (max-width: 480px) {
   textarea.expanded {
    height: 100px; 
    width: 250px;/* Dimensiune mai mare */
    transition: height 0.3s ease;
}
}



/* Adăugăm efecte de hover și focus pe butoanele de salvare */
button {
    padding: 10px 20px;
    background-color: #709eca;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #4343cc;
}
/* Default for PC (fixed width and height) */
.responsive-iframe {
    width: 560px; /* Fixed width for PC */
    height: 314px; /* Fixed height for PC */
    margin: 0 auto; /* Center on larger screens */
    border: none;
}

/* Responsive design for smaller devices */
@media screen and (max-width: 768px) {
    .responsive-iframe {
        position: relative;
        width: 100%; /* Full width for smaller devices */
        padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio */
        height: 0; /* Height is determined by padding */
        overflow: hidden;
    }

    .responsive-iframe iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }
}