@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Roboto:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    padding-top: 80px; /* Add padding to account for fixed header */
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/* New styles for fixed header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.redaction-container {
    display: flex;
    margin-top: 2rem;
    gap: 2rem;
}

.product-list {
    width: 25%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    height: calc(100vh - 230px); /* Adjusted for fixed header */
    overflow-y: auto;
}

.product-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
    margin-right: 0.75rem;
    border-radius: 4px;
}

.product-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.main-content {
    width: 75%;
}

#productDetails {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.product-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.product-detail-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-right: 2rem;
}

.product-title {
    flex-grow: 1;
}

#productName {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.product-description {
    margin-bottom: 2rem;
}

.description-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

#productDescription {
    width: 100%;
    min-height: 120px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 0.95rem;
    resize: vertical;
}

.generate-section {
    background-color: #e8f4fd;
    border-radius: 8px;
    padding: 1.5rem;
}

.generate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #3498db;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.generate-btn:hover {
    background-color: #2980b9;
}

.generate-btn i {
    margin-right: 0.5rem;
}

.hidden {
    display: none;
}

/* Wow Title Styles */
.wow-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    color: #2c3e50;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.wow-title::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: #3498db;
    transition: width 0.3s ease-in-out;
}

.wow-title:hover::after {
    width: 100%;
}

.wow-title-text {
    background: linear-gradient(45deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

.wow-title:hover .wow-title-text {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}



/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 180px); /* Adjusted for fixed header */
    padding: 2rem;
}

.login-form {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.login-logo {
    display: block;
    margin: 0 auto 2rem;
    max-width: 150px;
    height: auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.login-form .generate-btn {
    width: 100%;
    margin-top: 1rem;
}

.upload-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
}

.upload-btn:hover {
    background-color: #45a049;
}

.audio-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.audio-item:hover {
    background-color: #f5f5f5;
}

.audio-icon {
    font-size: 24px;
    margin-right: 15px;
    color: #666;
}

.audio-info {
    display: flex;
    flex-direction: column;
}

.audio-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.audio-status {
    font-size: 0.9em;
    color: #666;
}

.audio-date {
    font-size: 0.8em;
    color: #999;
}

.audio-player-container {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

#audioPlayer {
    width: 100%;
    margin-top: 10px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification {
    animation: slideIn 0.5s ease forwards;
}

.notification.hiding {
    animation: slideOut 0.5s ease forwards;
}

/* Loader animation */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: #FF3D00;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Progress bar */
.progress-container {
    width: 100%;
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 3px;
    margin-top: 20px;
}

.progress-bar {
    height: 20px;
    background-color: #4CAF50;
    border-radius: 5px;
    width: 0%;
    transition: width 0.5s ease-in-out;
}

.progress-text {
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

.hidden {
    display: none;
}

.satisfaction-meter {
    background-color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.satisfaction-gauge {
    transition: width 1s ease-out, background-color 1s ease-out;
    min-height: 1rem;
}

.satisfaction-score {
    font-size: 1rem;
    font-weight: 600;
}

.audio-item {
    position: relative;
    border-left: 4px solid transparent;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.audio-item:hover {
    border-left-color: #93C5FD; /* Bleu clair */
}

.audio-item.selected {
    border-left-color: #2563EB; /* Bleu foncé */
    background-color: #EFF6FF; /* Bleu très clair */
}

.audio-item.selected::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    height: 100%;
    width: 4px;
    background: #2563EB;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}