/* Layout Styles */
body {
    background-color: #121212;
    color: #f1f1f1;
    font-family: 'Segoe UI', sans-serif;
}

header, footer {
    background-color: #1e1e1e;
    color: #c49a6c;
}

.navbar {
    background-color: #1e1e1e !important;
}

.navbar-brand img {
    max-height: 40px;
    vertical-align: middle;
}

.navbar .nav-link {
    color: #d3d3d3 !important;
}

.navbar .nav-link:hover {
    color: #c49a6c !important;
}

.footer {
    padding: 15px 0;
    font-size: 0.9rem;
}

a {
    color: #c49a6c;
}

a:hover {
    color: #e5b36c;
}

/* Login Page Styles */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #121212;
}

.login-box {
    max-width: 400px;
    width: 100%;
    padding: 30px 25px;
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.welcome-text {
    color: #f5f5f5;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.welcome-text span {
    color: #c49a6c;
}

.login-logo img {
    max-width: 280px;
    height: auto;
    margin-bottom: 25px;
    background-color: #000;
    padding: 12px;
    border-radius: 10px;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    height: 48px;
    margin-bottom: 18px;
    border-radius: 6px;
    border: 1px solid #555;
    padding: 0 15px;
    font-size: 1rem;
    font-weight: 500;
    background: #2a2a2a;
    color: #fff;
    transition: border 0.3s, box-shadow 0.3s;
}

.login-box input::placeholder {
    color: #aaa;
}

.login-box input:focus {
    border-color: #c49a6c;
    box-shadow: 0 0 10px rgba(196, 154, 108, 0.5);
    outline: none;
}

.login-box button {
    width: 100%;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    background: linear-gradient(to right, #c49a6c, #b07d45);
    color: white;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    letter-spacing: 0.5px;
}

.login-box button:hover {
    opacity: 0.9;
}

.error-message {
    margin-top: 12px;
    color: #ff4c4c;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px 25px;
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: white;
}

.dashboard-container h2 {
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
    color: #c49a6c;
}

.dashboard-container img {
    max-width: 180px;
    display: block;
    margin: 0 auto 20px;
}

form input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 18px;
    font-size: 1rem;
    border: 1px solid #444;
    border-radius: 6px;
    background: #2a2a2a;
    color: white;
}

form input:focus {
    border-color: #c49a6c;
    outline: none;
    box-shadow: 0 0 8px rgba(196, 154, 108, 0.5);
}

form button {
    width: 100%;
    padding: 14px 0;
    font-size: 1.1rem;
    background: linear-gradient(to right, #c49a6c, #b07d45);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

form button:hover {
    opacity: 0.9;
}

.message {
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
}

.message.success {
    color: #28a745;
}

.message.error {
    color: #ff4c4c;
}

.logout-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.logout-container form button {
    background-color: #dc3545;
    width: auto;
    padding: 8px 18px;
    font-size: 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    color: white;
}

.logout-container form button:hover {
    background-color: #a71d2a;
}

.three-dots-btn {
    background-color: #c49a6c;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.2rem;
    display: inline-block;
    margin-right: 10px;
}

.three-dots-btn:hover {
    background-color: #b07d45;
    color: white;
}

.settings-btn {
    background-color: #6c757d;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.2rem;
    display: inline-block;
}

.settings-btn:hover {
    background-color: #5a6268;
    color: white;
}

.settings-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px 25px;
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: white;
}

.settings-form input, .settings-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    font-size: 1rem;
    border: 1px solid #444;
    border-radius: 6px;
    background: #2a2a2a;
    color: white;
}

.settings-form label {
    display: block;
    margin-bottom: 5px;
    color: #c49a6c;
    font-weight: 600;
}

.site-options {
    margin-bottom: 20px;
}

.site-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.site-option input {
    width: 80%;
    margin-right: 10px;
    margin-bottom: 0;
}

.site-option .remove-btn {
    width: 20%;
}

.remove-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.add-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
}

form select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 18px;
    font-size: 1rem;
    border: 1px solid #444;
    border-radius: 6px;
    background: #2a2a2a;
    color: white;
    appearance: none;
}

form select:focus {
    border-color: #c49a6c;
    outline: none;
    box-shadow: 0 0 8px rgba(196, 154, 108, 0.5);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #1e1e1e;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    color: white;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    color: #c49a6c;
    margin: 0;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.close:hover {
    color: white;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #444;
}

.detail-label {
    font-weight: 600;
    color: #c49a6c;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.btn-cancel {
    background-color: #6c757d;
    color: white;
}

.btn-send {
    background: linear-gradient(to right, #c49a6c, #b07d45);
    color: white;
}

.modal-body {
    margin-top: 30px;
    line-height: 1.6;
}

/* Contacts Page Styles */
.contacts-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px 25px;
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: white;
}

.contacts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.contacts-header h2 {
    color: #c49a6c;
    margin: 0;
}

.back-btn {
    background-color: #6c757d;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-btn:hover {
    background-color: #5a6268;
    color: white;
}

.contact-item {
    background: #2a2a2a;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 15px;
    align-items: center;
}

.contact-phone {
    font-weight: 600;
    color: #f1f1f1;
    font-size: 1.1rem;
}

.contact-status {
    font-size: 0.9rem;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 500;
}

.status-sent {
    background-color: #28a745;
    color: white;
}

.status-sending {
    background-color: #ffc107;
    color: #212529;
    animation: pulse 1.5s infinite;
}

.no-contacts {
    text-align: center;
    color: #aaa;
    font-style: italic;
    padding: 40px 0;
}

.details-link {
    color: #c49a6c;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}

.details-link:hover {
    color: #e5b36c;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}