@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap');

* {
    font-family: 'Inter Tight', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter Tight', sans-serif;
    background: #ffffff;
    color: #202124;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f5f5f5;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: white;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 40px 32px;
    text-align: center;
}

.login-icon {
    font-size: 48px;
    color: #CC320C;
    margin-bottom: 16px;
}

h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #202124;
}

.subtitle {
    color: #5f6368;
    margin-bottom: 32px;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Input Groups */
.input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 0 16px;
    background: white;
}

.input-group:focus-within {
    border-color: #CC320C;
}

.input-icon {
    color: #5f6368;
    font-size: 20px;
}

.input-group input {
    width: 100%;
    padding: 14px 0;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: 'Inter Tight', sans-serif;
    background: transparent;
}

/* Buttons */
.btn-primary {
    background: #CC320C;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    transition: background 0.15s ease;
}

.btn-primary:hover {
    background: #a82808;
}

.btn-outline {
    background: transparent;
    border: 1px solid #dadce0;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5f6368;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-outline:hover {
    background: #f8f9fa;
    border-color: #CC320C;
    color: #CC320C;
}

.btn-outline-small {
    background: transparent;
    border: 1px solid #dadce0;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    color: #5f6368;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-outline-small:hover {
    background: #f8f9fa;
    border-color: #CC320C;
    color: #CC320C;
}

.btn-icon {
    background: transparent;
    border: 1px solid #dadce0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5f6368;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-icon:hover {
    background: #f8f9fa;
    border-color: #CC320C;
    color: #CC320C;
}

.btn-full {
    width: 100%;
}

/* Error Message */
.error-message {
    background: #fce8e6;
    color: #c5221f;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Dashboard */
.app-container {
    min-height: 100vh;
    background: #f8f9fa;
}

.main-header {
    background: white;
    border-bottom: 1px solid #e8eaed;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    color: #CC320C;
    font-size: 28px;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: #202124;
}

.role-badge {
    background: #f1f3f4;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    color: #5f6368;
}

.user-icon {
    color: #5f6368;
}

.user-name {
    font-size: 14px;
    color: #202124;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.panel-header h2 {
    font-size: 24px;
    font-weight: 500;
    color: #202124;
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 0 16px;
    background: white;
    min-width: 300px;
}

.search-box .material-icons {
    color: #5f6368;
    font-size: 20px;
}

.search-box input {
    padding: 12px 0;
    border: none;
    outline: none;
    font-size: 14px;
    width: 100%;
}

.search-box input:focus {
    outline: none;
}

/* Feedback List */
.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e8eaed;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.feedback-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #202124;
}

.feedback-user .material-icons {
    font-size: 18px;
    color: #5f6368;
}

.feedback-date {
    font-size: 12px;
    color: #5f6368;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: #fff3e0;
    color: #e67e22;
}

.status-resolved {
    background: #e6f4ea;
    color: #1e8e3e;
}

.feedback-preview {
    color: #3c4043;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.feedback-actions {
    display: flex;
    gap: 12px;
}

/* Modals - Base */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border: 1px solid #dadce0;
    border-radius: 12px;
    width: 90%;
    overflow: hidden;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e8eaed;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #202124;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #9aa0a6;
    line-height: 1;
    padding: 0;
    transition: color 0.15s ease;
}

.modal-close:hover {
    color: #CC320C;
}

/* Create modal - простое поле */
#createModal .modal-content {
    max-width: 520px;
}

#createModal .modal-body {
    padding: 24px;
}

#createModal textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter Tight', sans-serif;
    resize: vertical;
    min-height: 150px;
    outline: none;
}

#createModal textarea:focus {
    border-color: #CC320C;
}

/* View Modal - просмотр отзыва */
#viewModal .modal-content {
    max-width: 560px;
}

#viewModal .modal-body {
    padding: 24px;
}

.feedback-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8eaed;
}

.feedback-meta .material-icons {
    font-size: 18px;
    color: #9aa0a6;
}

.feedback-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.feedback-meta-item span:not(.material-icons) {
    font-size: 13px;
    color: #5f6368;
}

.feedback-content {
    background: #f8f9fa;
    padding: 16px;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 14px;
    color: #202124;
}

.response-section,
.existing-response {
    margin-top: 8px;
}

.response-section label,
.existing-response label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 13px;
    color: #5f6368;
}

.response-section textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    resize: vertical;
    outline: none;
}

.response-section textarea:focus {
    border-color: #CC320C;
}

.response-text {
    background: #f1f3f4;
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #202124;
}

/* Modal Footer */
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e8eaed;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #fafafa;
}

/* Success modal - простой текст */
.success-modal .modal-content {
    max-width: 320px;
}

.success-modal .modal-body {
    padding: 32px 24px;
    text-align: center;
}

.success-modal .modal-body p {
    font-size: 16px;
    color: #202124;
    margin: 0;
}

.success-modal .modal-footer {
    justify-content: center;
    padding: 0 24px 32px 24px;
    border-top: none;
    background: white;
}

/* Responsive */
@media (max-width: 640px) {
    .main-content {
        padding: 16px;
    }

    .panel-header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
        min-width: auto;
    }

    .main-header {
        padding: 0 16px;
    }

    .user-name {
        display: none;
    }

    .modal-content {
        width: 95%;
    }
    
    #viewModal .modal-content,
    #createModal .modal-content,
    .success-modal .modal-content {
        max-width: none;
    }
}