/* Privacy Policy Styles - Using unique class names to avoid conflicts */
.privacy-policy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #1a1a24;
    min-height: 100vh;
}

.privacy-policy-content {
    background-color: #2c2c3a;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.privacy-policy-content h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid #9d6dde;
    padding-bottom: 1rem;
}

.policy-dates {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #3a3a4a;
    border-radius: 6px;
}

.policy-dates p {
    margin-bottom: 0.5rem;
    color: #b48ae5;
}

.policy-sections h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #9d6dde;
}

.policy-sections h3 {
    font-size: 1.3rem;
    color: #b48ae5;
    margin: 1.5rem 0 0.5rem 0;
}

.policy-sections p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.policy-sections ul {
    margin: 1rem 0 1.5rem 2rem;
    color: #e0e0e0;
}

.policy-sections li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.contact-info {
    background-color: #3a3a4a;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    border-left: 4px solid #9d6dde;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info .font-semibold {
    font-weight: 600;
    color: #ffffff;
}

/* Control buttons container */
.block-controls,
div.block-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
} /* UrbanEggz Admin Theme - iOS Inspired Dark/Purple Theme */
/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #121218;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

h1 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
}

/* Links */
a {
    color: #9d6dde;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #b48ae5;
}

/* Navigation */
.admin-header {
    background: #1a1a24;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand h1 {
    font-family: "Poppins", -apple-system, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-badge {
    background: #2c2c3a;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 400;
    color: #b48ae5;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-header .main-nav a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    opacity: 1 !important;
}

.admin-header .main-nav a:hover {
    background: #2c2c3a;
    color: #b48ae5 !important;
}

.sign-out-button {
    background: rgba(180, 58, 80, 0.8);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.sign-out-button:hover {
    background: rgba(210, 68, 94, 0.9);
}

/* Main Content Layout */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Login Container */
.login-container {
    max-width: 400px;
    margin: 4rem auto;
    padding: 2rem;
    background: #1a1a24;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Boxes */
.box {
    background: #1a1a24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-header h1 {
    font-family: "Poppins", -apple-system, sans-serif;
    color: #ffffff;
    margin: 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: #1a1a24;
    border-radius: 8px;
    overflow: hidden;
}

th {
    background-color: #2c2c3a;
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #ffffff;
    border-bottom: none;
}

td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: rgba(157, 109, 222, 0.05);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #e0e0e0;
}

/* Form fields and placeholders */
input[type=text],
input[type=number],
input[type=email],
input[type=password],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background-color: #2c2c3a !important;
    color: #ffffff !important;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Improve placeholder visibility */
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.7) !important; /* Increased from 0.5 to 0.7 for better contrast */
    opacity: 1;
}

/* Fix for Firefox placeholder opacity */
input::-moz-placeholder,
textarea::-moz-placeholder {
    opacity: 1;
    color: rgba(255, 255, 255, 0.7) !important; /* Increased from 0.5 to 0.7 for better contrast */
}

input[type=text]:focus,
input[type=number]:focus,
input[type=email]:focus,
input[type=password]:focus,
textarea:focus,
select:focus {
    border-color: #9d6dde;
    outline: none;
    box-shadow: 0 0 0 2px rgba(157, 109, 222, 0.25);
}

input[type=checkbox] {
    margin-right: 0.5rem;
}

input[type=datetime-local] {
    background-color: #2c2c3a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    padding: 0.5rem;
}

/* Buttons */
.button, .btn {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #9d6dde;
    color: white;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.button:hover, .btn:hover {
    background-color: #b48ae5;
    transform: translateY(-1px);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button:active, .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.button-secondary {
    background-color: #5c5c6f;
}

.button-secondary:hover {
    background-color: #6e6e85;
}

.button-danger {
    background-color: rgba(180, 58, 80, 0.8);
}

.button-danger:hover {
    background-color: rgba(210, 68, 94, 0.9);
}

.button-info {
    background-color: #4a80de;
}

.button-info:hover {
    background-color: #5e90ea;
}

/* Status indicators */
.text-success {
    color: #5cda8f !important;
}

.text-danger {
    color: #e55c7a !important;
}

.bg-success-subtle {
    background-color: rgba(92, 218, 143, 0.1) !important;
}

.bg-danger-subtle {
    background-color: rgba(229, 92, 122, 0.1) !important;
}

.btn.text-success.bg-success-subtle {
    border-color: rgba(92, 218, 143, 0.3);
}

.btn.text-danger.bg-danger-subtle {
    border-color: rgba(229, 92, 122, 0.3);
}

/* Flash messages */
.notice, .alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(92, 218, 143, 0.1);
    color: #5cda8f;
    border: 1px solid rgba(92, 218, 143, 0.3);
}

.alert-danger {
    background-color: rgba(229, 92, 122, 0.1);
    color: #e55c7a;
    border: 1px solid rgba(229, 92, 122, 0.3);
}

/* Time window styling */
.time-window {
    margin-bottom: 0.5rem;
}

.time-window label {
    display: inline-block;
    width: 80px;
    font-weight: normal;
    color: #a0a0a0;
    margin-bottom: 0.25rem;
}

.time-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.9em;
    margin-top: 0.25rem;
}

.time-status.active {
    background: rgba(92, 218, 143, 0.1);
    border: 1px solid rgba(92, 218, 143, 0.2);
    color: #5cda8f;
}

.time-status.inactive {
    background: rgba(229, 92, 122, 0.1);
    border: 1px solid rgba(229, 92, 122, 0.2);
    color: #e55c7a;
}

/* Fix for "No time restrictions" text */
.text-muted {
    color: #a0a0a0 !important;
}

.time-status-indicator {
    margin-top: 0.5rem;
}

.time-status-indicator.time-active {
    color: #5cda8f;
}

.time-status-indicator.time-inactive {
    color: #e55c7a;
}

.trickle-down-disabled {
    background-color: rgba(229, 92, 122, 0.05) !important;
}

/* Modal overlay styling */
.modal-backdrop {
    background-color: rgba(180, 138, 229, 0.15) !important; /* Purple tinted overlay */
    backdrop-filter: blur(5px); /* Blur effect for modern browsers */
}

.modal-backdrop.show {
    opacity: 1 !important; /* Make sure it's fully visible */
}

/* Fix for Google Places Autocomplete dropdown in modals */
.pac-container {
    z-index: 1060 !important; /* Higher than modal's z-index */
    background-color: #1a1a2e !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

.pac-item {
    color: #fff !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.pac-item:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.pac-item-query {
    color: #fff !important;
}

.pac-icon {
    filter: invert(1) !important; /* Make icons white */
}

/* Time hints */
.time-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85em;
    color: #a0a0a0;
}

.content-block {
    background: #2c2c3a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.block-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.block-controls button {
    padding: 0.25rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #1a1a24;
    border-radius: 4px;
    color: #e0e0e0;
    cursor: pointer;
}

.block-controls button:hover {
    background: #2c2c3a;
}

.block-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.block-type-selector {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #2c2c3a;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.block-type-selector select {
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    flex: 1;
    background: #1a1a24;
    color: #e0e0e0;
}

/* Quill editor styling */
.quill-editor {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    margin-bottom: 1rem;
    min-height: 150px;
    background: #1a1a24;
}

.ql-toolbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: #2c2c3a;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.ql-container {
    min-height: 150px;
    color: #e0e0e0;
}

.ql-editor {
    min-height: 150px;
}

/* Preview modal styling */
.modal-content {
    background: #1a1a24;
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    background: #2c2c3a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer {
    background: #2c2c3a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-container {
    background: #121218;
}

/* Media previews */
.media-preview {
    margin: 1rem 0;
}

.media-preview img {
    max-width: 300px;
    max-height: 200px;
    object-fit: contain;
    border-radius: 4px;
}

.media-preview audio,
.media-preview video {
    max-width: 100%;
    background: #2c2c3a;
    border-radius: 4px;
}

/* Map inputs */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .col {
    flex: 1;
}

/* Bootstrap Overrides */
.form-switch .form-check-input {
    background-color: rgba(255, 255, 255, 0.2);
}

.form-check-input:checked {
    background-color: #9d6dde;
    border-color: #9d6dde;
}

.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
}

.badge.bg-success {
    background-color: rgba(92, 218, 143, 0.8) !important;
    color: #ffffff;
}

.badge.bg-secondary {
    background-color: #5c5c6f !important;
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .main-content {
        padding: 0 1rem;
    }
    .header-content {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    .box {
        padding: 1rem;
    }
}
/*dashboard styles*/
/* app/assets/stylesheets/application.css */
/* Dashboard Styling */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.metric-card {
    text-align: center;
    padding: 20px;
}

.metric-number {
    font-size: 36px;
    font-weight: bold;
    color: #9d6dde;
    margin: 10px 0;
}

.metric-subtitle {
    color: #a0a0a0;
    font-size: 14px;
}

.dashboard-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.activity-icon {
    margin-right: 15px;
    width: 30px;
    height: 30px;
    background-color: rgba(157, 109, 222, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9d6dde;
}

.activity-content {
    flex: 1;
}

.activity-title {
    margin-bottom: 5px;
    font-weight: 500;
}

.activity-time {
    font-size: 12px;
    color: #a0a0a0;
}

.top-eggs-chart {
    height: 300px;
}

/* Navbar sizing improvements for better spacing */
.admin-header .main-nav {
    gap: 1rem; /* Reduce gap between items from 1.5rem */
}

.admin-header .main-nav a {
    font-size: 0.9rem; /* Reduce font size from default */
    padding: 0.4rem 0.7rem; /* Slightly smaller padding */
}

/* Make the admin badge a bit more compact */
.admin-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
}

/* Slightly reduce logo size if needed */
.admin-header .logo {
    height: 45px !important; /* Slightly smaller from 50px */
}

/* Adjust header height if necessary */
.admin-header {
    padding: 0.8rem 0; /* Slightly reduced from 1rem */
}

/* Add to your application.css */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

.custom-dropdown .nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
}

.custom-dropdown .nav-link:hover,
.custom-dropdown:hover .nav-link {
    background: #2c2c3a;
    color: #b48ae5;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2c2c3a;
    min-width: 180px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.dropdown-content a {
    color: #e0e0e0;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-content a:hover {
    background-color: rgba(157, 109, 222, 0.2);
    color: #ffffff;
}

.dropdown-content a.active-item {
    color: #b48ae5; /* Just change the text color */
}

.custom-dropdown:hover .dropdown-content {
    display: block;
}

/* Add this to your application.css file */
/* Devise form styling */
.devise-form {
    background: #1a1a24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    color: #ffffff;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.devise-form h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #ffffff;
}

.devise-form .form-group {
    margin-bottom: 1.2rem;
}

.devise-form .form-control {
    background-color: #2c2c3a !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    padding: 0.75rem;
    border-radius: 8px;
}

.devise-form .form-check-label {
    color: #e0e0e0;
}

.devise-form .btn-primary {
    background-color: #9d6dde;
    border: none;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    width: 100%;
    margin-top: 0.5rem;
    border-radius: 8px;
}

.devise-form .btn-primary:hover {
    background-color: #b48ae5;
}

.devise-form a {
    color: #9d6dde;
    text-decoration: none;
}

.devise-form a:hover {
    color: #b48ae5;
    text-decoration: underline;
}

.devise-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.devise-links a {
    display: bslock;
    margin: 0.5rem 0;
}

/* Add to application.css */
.admin-login-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #121218;
    padding: 0;
}

.main-site-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #121218;
    padding: 0;
    min-height: 100vh;
}

/* Live indicator styles */
.status-indicator {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #5cda8f;
}

.status-indicator span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.target-location-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.target-location-item:hover {
    background-color: #f5f5f5;
}

.target-location-item.highlighted {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
}