:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.5;font-weight:400;color:#333;background-color:#f5f5f5;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;padding:0;min-width:320px;min-height:100vh}#root{min-height:100vh}*{box-sizing:border-box}.news-list-container{background:#fff;border-radius:8px;padding:1.5rem;box-shadow:0 1px 3px #0000001a}.news-list-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid #e9ecef;flex-wrap:wrap;gap:1rem}.news-list-header h1{color:#212529;font-size:1.5rem;font-weight:700;margin-bottom:.25rem;letter-spacing:-.5px}.header-description{color:#6c757d;font-size:.875rem;margin-top:.25rem}.no-news{text-align:center;padding:3rem 1.5rem;color:#6c757d}.no-news p{font-size:1rem;margin-bottom:1rem}.news-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1.25rem}.news-card{background:#fff;border:1px solid #dee2e6;border-radius:8px;overflow:hidden;transition:all .2s ease;display:flex;flex-direction:column}.news-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000001a;border-color:#adb5bd}.news-image-wrapper{width:100%;height:180px;overflow:hidden;background:#f8f9fa}.news-image{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}.news-card:hover .news-image{transform:scale(1.05)}.news-content{padding:1rem;display:flex;flex-direction:column;flex:1}.news-content h2{color:#212529;font-size:1.125rem;font-weight:600;margin-bottom:.5rem;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.news-excerpt{color:#495057;line-height:1.5;margin-bottom:.75rem;font-size:.875rem;flex:1}.news-meta{display:flex;gap:1rem;font-size:.8rem;color:#6c757d;margin-bottom:.75rem;padding-top:.5rem;border-top:1px solid #e9ecef;flex-wrap:wrap}.meta-item{display:flex;align-items:center;gap:.25rem}.meta-label{font-weight:500;color:#495057}.news-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:.5rem}.news-actions button{padding:.5rem;font-size:.8rem}@media(max-width:768px){.news-grid{grid-template-columns:1fr}.news-list-header{flex-direction:column;align-items:stretch}.news-actions{grid-template-columns:1fr}}.news-detail-container{background:#fff;border-radius:8px;padding:1.5rem;box-shadow:0 1px 3px #0000001a}.news-detail{max-width:900px;margin:0 auto}.news-header{margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid #e9ecef}.news-detail h1{color:#212529;font-size:1.75rem;font-weight:700;margin-bottom:1rem;line-height:1.3;letter-spacing:-.5px}.news-meta{display:flex;gap:1.5rem;flex-wrap:wrap}.meta-group{display:flex;flex-direction:column;gap:.25rem}.meta-label{font-size:.7rem;text-transform:uppercase;letter-spacing:.5px;color:#6c757d;font-weight:600}.meta-value{font-size:.875rem;color:#212529}.image-gallery{margin:1.5rem 0}.main-image-wrapper{width:100%;max-height:450px;overflow:hidden;border-radius:8px;background:#f8f9fa;margin-bottom:.75rem}.main-image{width:100%;height:100%;max-height:450px;object-fit:contain;display:block}.image-thumbnails{display:flex;gap:.5rem;overflow-x:auto;padding:.25rem 0}.thumbnail-button{padding:0;border:2px solid transparent;border-radius:6px;overflow:hidden;background:none;transition:all .2s ease;flex-shrink:0}.thumbnail-button:hover{border-color:#adb5bd;transform:none;box-shadow:none}.thumbnail-button.active{border-color:#007bff}.thumbnail{width:70px;height:70px;object-fit:cover;display:block}.news-content{font-size:1rem;line-height:1.6;color:#495057;margin:1.5rem 0}.news-content p{margin-bottom:1rem}.news-content p:last-child{margin-bottom:0}.news-actions{display:flex;gap:.75rem;margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid #e9ecef;flex-wrap:wrap}.news-actions button{min-width:130px}@media(max-width:768px){.news-detail h1{font-size:1.5rem}.news-meta{gap:1rem}.news-actions{flex-direction:column}.news-actions button{width:100%}}.news-form-container{background:#fff;border-radius:8px;padding:1.5rem;box-shadow:0 1px 3px #0000001a;max-width:800px;margin:0 auto}.form-header{margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid #e9ecef}.form-header h1{color:#212529;font-size:1.5rem;font-weight:700;margin-bottom:.5rem;letter-spacing:-.5px}.form-description{color:#6c757d;font-size:.875rem;margin:0}.news-form{width:100%}.form-group{margin-bottom:1.25rem}.form-group label{display:block;margin-bottom:.5rem;color:#212529;font-weight:600;font-size:.875rem}.required{color:#dc3545}.optional{color:#6c757d;font-weight:400;font-size:.8rem}.form-group input[type=text],.form-group input[type=number],.form-group textarea{width:100%;padding:.625rem;border:1px solid #ced4da;border-radius:6px;font-size:.875rem;font-family:inherit;transition:all .2s ease;background:#fff;color:#495057}.form-group input:focus,.form-group textarea:focus{outline:none;border-color:#007bff;box-shadow:0 0 0 3px #007bff1a}.form-group input::placeholder,.form-group textarea::placeholder{color:#adb5bd}.form-group textarea{resize:vertical;min-height:150px;line-height:1.5}.form-group small{display:block;margin-top:.375rem;color:#6c757d;font-size:.8rem}.char-counter{text-align:right}.file-input-wrapper{display:flex;flex-direction:column;gap:.75rem}.file-input-hidden{display:none}.file-input-button{display:flex;align-items:center;justify-content:center;padding:2.5rem;background:transparent;color:#868e96;border:2px dashed #ced4da;border-radius:6px;font-size:1rem;font-weight:400;cursor:pointer;transition:all .2s ease;width:100%;text-align:center}.file-input-button:hover{border-color:#007bff;color:#007bff;background:#007bff05;transform:none;box-shadow:none}.file-input-hidden:disabled+.file-input-button{cursor:not-allowed;opacity:.5;border-color:#dee2e6;color:#adb5bd}.file-input-hidden:disabled+.file-input-button:hover{border-color:#dee2e6;color:#adb5bd;background:transparent}.file-info{display:inline-flex;align-items:center;gap:.5rem;color:#28a745;font-weight:500;font-size:.875rem;padding:.5rem .75rem;background:#d4edda;border:1px solid #c3e6cb;border-radius:6px;width:fit-content}.file-info svg{flex-shrink:0}.existing-images{margin-top:1rem;padding:1rem;background:#f8f9fa;border-radius:6px;border:1px solid #e9ecef}.new-images-preview{margin-top:1rem;padding:1rem;background:#e7f5ff;border-radius:6px;border:1px solid #a5d8ff}.section-title{margin-bottom:.75rem;font-weight:600;color:#495057;font-size:.875rem}.image-preview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:.5rem}.image-preview{position:relative;border-radius:6px;overflow:hidden;background:#fff;border:1px solid #dee2e6}.image-preview img{width:100%;height:90px;object-fit:cover;display:block}.remove-image-btn{position:absolute;top:4px;right:4px;width:24px;height:24px;padding:0;background:#dc3545e6;color:#fff;border:none;border-radius:50%;font-size:18px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease;min-width:unset}.remove-image-btn:hover{background:#dc3545;transform:scale(1.1);box-shadow:0 2px 8px #dc354566}.image-name{position:absolute;bottom:0;left:0;right:0;padding:4px;background:#000000b3;color:#fff;font-size:.7rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.form-actions{display:flex;gap:.75rem;margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid #e9ecef;flex-wrap:wrap}.form-actions button{min-width:150px;padding:.625rem 1.25rem}@media(max-width:768px){.news-form-container{padding:1.25rem}.form-header h1{font-size:1.375rem}.form-actions{flex-direction:column}.form-actions button{width:100%}.image-preview-grid{grid-template-columns:repeat(auto-fill,minmax(70px,1fr))}.image-preview img{height:70px}}*{margin:0;padding:0;box-sizing:border-box}.app{min-height:100vh;background:#f5f7fa}.app-header{background:linear-gradient(135deg,#1e3c72,#2a5298);padding:1.5rem 2rem;box-shadow:0 2px 8px #0000001a;border-bottom:3px solid #1e3c72}.header-content{max-width:1200px;margin:0 auto;display:flex;align-items:baseline;gap:1rem}.app-header h1{color:#fff;font-size:1.75rem;font-weight:700;letter-spacing:-.5px}.header-subtitle{color:#fffc;font-size:.95rem;font-weight:400}.app-main{max-width:1200px;margin:0 auto;padding:1.5rem}.loading{text-align:center;padding:3rem;font-size:1.2rem;color:#666}.error{background:#dc3545;color:#fff;padding:1rem 1.5rem;border-radius:6px;margin:1rem 0;border-left:4px solid #bd2130}button{cursor:pointer;border:none;border-radius:6px;padding:.625rem 1.25rem;font-size:.9rem;font-weight:500;transition:all .2s ease;font-family:inherit}button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 8px #00000026}button:active:not(:disabled){transform:translateY(0)}button:disabled{opacity:.5;cursor:not-allowed}.btn-back{background:#fff;color:#495057;border:1px solid #dee2e6;margin-bottom:1.5rem}.btn-back:hover:not(:disabled){background:#f8f9fa;border-color:#adb5bd}.btn-create{background:#28a745;color:#fff}.btn-create:hover:not(:disabled){background:#218838}.btn-view{background:#007bff;color:#fff}.btn-view:hover:not(:disabled){background:#0056b3}.btn-edit{background:#ffc107;color:#212529}.btn-edit:hover:not(:disabled){background:#e0a800}.btn-delete{background:#dc3545;color:#fff}.btn-delete:hover:not(:disabled){background:#c82333}.btn-submit{background:#28a745;color:#fff}.btn-submit:hover:not(:disabled){background:#218838}.btn-cancel{background:#6c757d;color:#fff}.btn-cancel:hover:not(:disabled){background:#5a6268}
