:root {
    --primary-color: #4CAF50;
    --primary-hover: #45a049;
    --secondary-color: #2c3e50;
    --background-dark: #1a1f2e;
    --background-light: #2a3142;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --danger-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f1c40f;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --accent-color-transparent: rgba(82, 145, 255, 0.1);
    --accent-color-transparent-hover: rgba(82, 145, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

/* Login Page Styles */
.login-page {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top right, var(--secondary-color), var(--background-dark));
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background-color: var(--background-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--background-dark);
    background-color: var(--background-dark);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.login-button {
    width: 100%;
    padding: 0.875rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.login-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.error-message {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

/* Dashboard Styles */
.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background-color: var(--background-light);
    padding: 1.5rem 1rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: none;
    margin-bottom: 0;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.sidebar-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sidebar-menu {
    list-style: none;
    padding-top: 0;
}

.sidebar-menu li {
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.sidebar-menu li i {
    width: 20px;
    text-align: center;
}

.sidebar-menu li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-menu li.active {
    background-color: var(--primary-color);
    color: white;
}

.main-content {
    margin-left: 280px;
    padding: 2rem;
    width: calc(100% - 280px);
}

/* Project Cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.project-card {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Forms */
.form-container {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--box-shadow);
}

/* Tables */
.data-table-container {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    box-shadow: var(--box-shadow);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.data-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-entry {
    position: relative;
    margin-left: 2rem;
    padding: 1.5rem;
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
}

.timeline-entry::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 1.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid var(--background-dark);
}

.timeline-phase {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.timeline-findings {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: var(--border-radius);
    color: var(--text-secondary);
}

/* Notes Grid */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.note-card {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.note-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.note-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.note-content {
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.note-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
}

/* Sections */
.section {
    background-color: var(--background-dark);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.section.pentest-phases {
    background-color: transparent;
    box-shadow: none;
}

.section.pentest-phases h2 {
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.section h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Severity Colors */
.severity-critical {
    background-color: rgba(231, 76, 60, 0.2);
}

.severity-high {
    background-color: rgba(230, 126, 34, 0.2);
}

.severity-medium {
    background-color: rgba(241, 196, 15, 0.2);
}

.severity-low {
    background-color: rgba(46, 204, 113, 0.2);
}

.severity-info {
    background-color: rgba(52, 152, 219, 0.2);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    margin: 2rem auto;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

/* Content Header */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Project Status */
.project-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Project Info */
.project-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Textarea */
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--background-dark);
    border: 2px solid var(--background-dark);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    resize: vertical;
    min-height: 100px;
    transition: var(--transition);
}

textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    outline: none;
}

/* Interactive Dashboard Grid */
.hex-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem;
    perspective: 1000px;
    margin-bottom: 3rem;
}

.hex-item {
    position: relative;
    width: 200px;
    height: 230px;
    margin: 0 auto;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.hex-item:hover {
    transform: translateZ(20px) rotateX(10deg);
}

.hex-item::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), transparent);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all 0.3s ease;
    opacity: 0.1;
}

.hex-item:hover::before {
    opacity: 0.2;
    filter: blur(2px);
}

.hex-content {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background-color: var(--background-light);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all 0.3s ease;
}

.hex-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.hex-item:hover .hex-icon {
    transform: scale(1.2);
    color: var(--text-primary);
}

.hex-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.hex-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.hex-item:hover .hex-description {
    opacity: 1;
    transform: translateY(0);
}

/* Hologram Effect */
.hex-hologram {
    position: absolute;
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: repeating-linear-gradient(
        transparent 0%,
        rgba(76, 175, 80, 0.1) 50%,
        transparent 100%
    );
    background-size: 100% 4px;
    animation: hologram 20s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hex-item:hover .hex-hologram {
    opacity: 1;
}

/* Pulse Effect */
.hex-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 2px solid var(--primary-color);
    animation: pulse 2s infinite;
    opacity: 0;
}

.hex-item:hover .hex-pulse {
    opacity: 0.2;
}

/* Animations */
@keyframes hologram {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
    100% {
        transform: scale(1);
        opacity: 0.2;
    }
}

/* Active State */
.hex-item.active {
    transform: translateZ(30px) rotateX(15deg);
}

.hex-item.active .hex-content {
    background-color: var(--primary-color);
}

.hex-item.active .hex-icon {
    color: var(--text-primary);
    transform: scale(1.2);
}

.hex-item.active .hex-description {
    opacity: 1;
    transform: translateY(0);
    color: var(--text-primary);
}

/* Glow Effect */
.hex-item::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: radial-gradient(circle at center, var(--primary-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(10px);
    transform: translateZ(-1px);
}

.hex-item:hover::after {
    opacity: 0.1;
}

/* Circular Pentest Phases */
.pentest-phases {
    margin-top: 3rem;
    padding: 2rem;
}

.circle-container {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-circle {
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--background-light);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.2);
}

.center-circle i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.center-circle span {
    font-size: 0.9rem;
    color: var(--text-primary);
    text-align: center;
    font-weight: 500;
}

.phase-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    transform-origin: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.phase-icon {
    width: 100%;
    height: 100%;
    background: var(--background-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(76, 175, 80, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.phase-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.phase-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 25px;
    height: 25px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

.phase-info {
    position: absolute;
    width: 200px;
    background: var(--background-light);
    padding: 1rem;
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.phase-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.phase-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.phase-info li {
    color: var(--text-secondary);
    margin: 0.25rem 0;
    display: flex;
    align-items: center;
}

.phase-info li::before {
    content: '•';
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Position info boxes based on their location in the circle */
.phase-circle:nth-child(1) .phase-info,
.phase-circle:nth-child(2) .phase-info {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
}

.phase-circle:nth-child(3) .phase-info,
.phase-circle:nth-child(4) .phase-info {
    left: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
}

.phase-circle:nth-child(5) .phase-info,
.phase-circle:nth-child(6) .phase-info {
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
}

.phase-circle:nth-child(7) .phase-info {
    right: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
}

/* Hover and Active States */
.phase-circle:hover .phase-icon,
.phase-circle.active .phase-icon {
    background: var(--primary-color);
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.phase-circle:hover .phase-icon i,
.phase-circle.active .phase-icon i {
    color: white;
}

.phase-circle:hover .phase-info,
.phase-circle.active .phase-info {
    opacity: 1;
    visibility: visible;
    transform: translate(0);
    pointer-events: auto;
}

/* Connected Phases Effect */
.phase-circle.connected .phase-icon {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
}

.phase-circle.connected .phase-number {
    transform: scale(1.1);
}

/* Connection Lines */
.circle-container::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    border: 2px dashed rgba(76, 175, 80, 0.2);
    border-radius: 50%;
    pointer-events: none;
}

/* Pulse Animation for Center Circle */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.center-circle {
    animation: pulse 2s infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .circle-container {
        width: 400px;
        height: 400px;
    }

    .circle-container::before {
        width: 300px;
        height: 300px;
    }

    .phase-info {
        width: 150px;
    }
}

/* Project Selector Styles */
.project-selector {
    padding: 1.25rem 1rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0 1rem 0;
}

.selector-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.selector-header i {
    color: var(--primary-color);
}

#projectSelect {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--background-dark);
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    transition: var(--transition);
}

#projectSelect:hover {
    border-color: var(--primary-color);
}

#projectSelect:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Custom dropdown arrow */
.project-selector {
    position: relative;
}

.project-selector::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1.5rem;
    top: 2.8rem;
    color: var(--primary-color);
    pointer-events: none;
}

/* Option Styles */
#projectSelect option {
    background-color: var(--background-dark);
    color: var(--text-primary);
    padding: 0.75rem;
}

#projectSelect option.status-active {
    color: var(--success-color);
}

#projectSelect option.status-completed {
    color: var(--primary-color);
}

#projectSelect option.status-archived {
    color: var(--text-secondary);
}

#projectSelect option.new-project {
    color: var(--primary-color);
    font-weight: 600;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover effect for the select */
.project-selector:hover::after {
    transform: translateY(2px);
}

/* Active state */
.project-selector.active #projectSelect {
    border-color: var(--primary-color);
}

/* Add spacing between selector and header */
.sidebar-header {
    margin-top: 0.5rem;
}

/* Asset Details Styles */
.asset-details-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.asset-details-section h3 {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.asset-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.detail-group {
    background: var(--bg-darker);
    border-radius: 6px;
    padding: 1rem;
}

.detail-group h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    background: var(--card-bg);
    border-radius: 4px;
    padding: 1rem;
    border-left: 3px solid var(--accent-color);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.detail-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.detail-content {
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-wrap;
}

/* Table row selection styles */
.data-table tr.selected {
    background-color: var(--accent-color-transparent);
}

.data-table tr.selected:hover {
    background-color: var(--accent-color-transparent-hover);
}

/* Small button styles */
.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Asset type badges */
.detail-type-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 0.5rem;
}

.detail-type-DNS { background-color: #4CAF50; color: white; }
.detail-type-Port { background-color: #2196F3; color: white; }
.detail-type-Service { background-color: #9C27B0; color: white; }
.detail-type-Technology { background-color: #FF9800; color: white; }
.detail-type-Vulnerability { background-color: #f44336; color: white; }
.detail-type-Note { background-color: #607D8B; color: white; }
.detail-type-Other { background-color: #795548; color: white; }

/* Asset Row Styles */
.asset-row {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.asset-row:hover {
    background-color: var(--accent-color-transparent);
}

.asset-row.expanded {
    background-color: var(--accent-color-transparent);
    border-bottom: none;
}

.asset-details-row {
    display: none;
    background-color: var(--background-dark);
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.asset-details-content {
    padding: 1.5rem;
    border-top: 2px solid var(--accent-color-transparent);
}

.asset-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.asset-details-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.toggle-details {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.toggle-details i {
    transition: transform 0.3s ease;
}

.expanded .toggle-details i {
    transform: rotate(180deg);
}

/* Asset Details Grid in Expandable Row */
.asset-details-row .asset-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.asset-details-row .detail-group {
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.asset-details-row .detail-group h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
}

.asset-details-row .detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.asset-details-row .detail-item {
    background: var(--background-dark);
    border-radius: 4px;
    padding: 0.75rem;
    border-left: 3px solid var(--primary-color);
}

.asset-details-row .detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.asset-details-row .detail-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.asset-details-row .detail-content {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

/* Animation for expanding/collapsing */
@keyframes slideDown {
    from { max-height: 0; }
    to { max-height: 1000px; }
}

@keyframes slideUp {
    from { max-height: 1000px; }
    to { max-height: 0; }
}

.asset-details-row.expanding {
    animation: slideDown 0.3s ease forwards;
}

.asset-details-row.collapsing {
    animation: slideUp 0.3s ease forwards;
} 