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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/background copie.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: -1;
}

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

.upload-container {
    max-width: 600px;
}

.header-logo {
    text-align: center;
    margin-bottom: 30px;
}

.admin-header {
    margin-bottom: 20px;
}

.total-logo {
    width: 250px;
    height: auto;
    max-height: 80px;
}

.security-notice {
    background-color: rgba(232, 244, 248, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #b8e4f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.lock-icon {
    flex-shrink: 0;
    color: #3498db;
    margin-top: 2px;
}

.security-notice p {
    margin: 0;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.6;
}

h1 {
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

h2 {
    color: #34495e;
    margin-bottom: 20px;
}

.create-link-section {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h3 {
    color: #34495e;
    margin-bottom: 10px;
}

.instructions {
    text-align: center;
    margin-bottom: 30px;
    font-size: 18px;
    color: #666;
}

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

#clientName {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-large {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    margin-top: 30px;
}

.link-result {
    background-color: #e8f4f8;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
    display: none;
}

.link-result.show {
    display: block;
}

.link-result h3 {
    color: #27ae60;
    margin-bottom: 10px;
}

.link-url {
    background-color: white;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: monospace;
    word-break: break-all;
    margin-bottom: 10px;
}

.copy-btn {
    background-color: #27ae60;
    color: white;
    padding: 8px 15px;
    font-size: 14px;
}

.copy-btn:hover {
    background-color: #229954;
}

.documents-section {
    margin-top: 50px;
}

.documents-list {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.document-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.document-item:last-child {
    border-bottom: none;
}

.document-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.client-name {
    font-weight: bold;
    font-size: 18px;
}

.upload-date {
    color: #666;
    font-size: 14px;
}

.document-info {
    margin: 10px 0;
    color: #666;
}

.document-count {
    background-color: #e8f4f8;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
}

.document-files {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

.file-group {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 5px;
}

.btn-view {
    background-color: #FF0030;
    color: white;
    padding: 10px 20px;
    margin-top: 10px;
    width: 100%;
}

.btn-view:hover {
    background-color: #cc0026;
}

.file-group h4 {
    margin-bottom: 10px;
    color: #495057;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-item a {
    color: #3498db;
    text-decoration: none;
}

.file-item a:hover {
    text-decoration: underline;
}

.document-section {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.format-info {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.upload-area {
    position: relative;
    margin-bottom: 15px;
}

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

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-label:hover {
    border-color: #3498db;
    background-color: #e8f4f8;
}

.upload-icon {
    color: #3498db;
    margin-bottom: 10px;
}

.upload-label span {
    color: #666;
    font-size: 16px;
    text-align: center;
}

.file-preview {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.file-preview-item {
    background-color: #e8f4f8;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    color: #666;
    font-size: 12px;
}

.remove-file {
    color: #e74c3c;
    cursor: pointer;
    font-weight: bold;
    font-size: 20px;
    line-height: 1;
    padding: 0 5px;
}

.remove-file:hover {
    color: #c0392b;
}

.upload-status {
    margin-top: 30px;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    display: none;
}

.upload-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.upload-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.status-icon {
    stroke-width: 2;
    margin-bottom: 20px;
}

.upload-status.success .status-icon {
    color: #27ae60;
}

.upload-status.error .status-icon {
    color: #e74c3c;
}

.upload-status h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.upload-status p {
    margin-bottom: 10px;
    font-size: 16px;
}

.btn-loading {
    display: inline-block;
}

.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.no-documents {
    text-align: center;
    color: #666;
    padding: 40px;
}

@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
    }
    
    .document-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}