/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    min-height: 100vh;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(17, 17, 17, 0.8);
    border-bottom: 1px solid rgba(51, 51, 51, 0.5);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    will-change: transform;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    filter: brightness(0) invert(1) brightness(1.2) contrast(1.1);
    transition: all 0.3s ease;
}

.logo-icon:hover {
    filter: brightness(0) invert(1) brightness(1.4) contrast(1.2) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    transform: scale(1.05);
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #e0e0e0, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    letter-spacing: -0.02em;
    position: relative;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.6));
    border-radius: 1px;
    opacity: 0.7;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.btn-primary {
    background: rgba(51, 51, 51, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: rgba(68, 68, 68, 0.9);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-danger {
    background: #666666;
    color: white;
    border: 1px solid #777777;
}

.btn-danger:hover {
    background: #777777;
    transform: translateY(-1px);
}

/* Controls Section */
.controls-section {
    padding: 3rem 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(17, 17, 17, 0.08));
    position: relative;
}

.controls-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.controls-bar {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.controls-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 24px 24px 0 0;
}

/* Profile Display Section */
.profile-display-section {
    flex: 1;
    padding: 2rem 0;
    background: rgba(0, 0, 0, 0.05);
}

.profile-display {
    background: linear-gradient(145deg, rgba(17, 17, 17, 0.95), rgba(34, 34, 34, 0.9));
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: none;
    will-change: transform;
}

.profile-display.visible {
    display: block;
}

.profile-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.profile-display:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 12px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.profile-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
    border-radius: 1px;
}

.profile-ip {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #e0e0e0, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.profile-timestamp {
    font-size: 0.875rem;
    color: #cccccc;
}

.profile-data {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.data-section {
    background: linear-gradient(135deg, rgba(34, 34, 34, 0.8), rgba(68, 68, 68, 0.4));
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    will-change: transform;
}

.data-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    border-radius: 16px;
    pointer-events: none;
}

.data-section:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Removed colorful borders for dark theme */

.data-title {
    font-size: 0.875rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
}

.data-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), transparent);
    border-radius: 1px;
}

.data-content {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    color: #ffffff;
    white-space: normal;
    word-break: break-word;
    background: #333333;
    padding: 1.2rem;
    border-radius: 4px;
    line-height: 1.8;
    text-align: left;
}

/* TCP Subcard Styles */
.tcp-subcard {
    background: #2a2a2a;
    border-radius: 6px;
    padding: 0.8rem;
    margin-bottom: 0.75rem;
    border: 1px solid #555555;
}

.tcp-subcard:last-child {
    margin-bottom: 0;
}

.tcp-subcard-title {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #444444;
    padding-bottom: 0.3rem;
}

.tcp-subcard-content {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    color: #ffffff;
    line-height: 1.6;
    white-space: normal;
}

/* HTTP Subcards */
.http-subcard {
    background: #2a2a2a;
    border-radius: 6px;
    padding: 0.8rem;
    margin-bottom: 0.75rem;
    border: 1px solid #555555;
}

.http-subcard:last-child {
    margin-bottom: 0;
}

.http-subcard-title {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #444444;
    padding-bottom: 0.3rem;
}

.http-subcard-content {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    color: #ffffff;
    line-height: 1.6;
    white-space: normal;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(17, 17, 17, 0.6);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    margin-top: 2rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.empty-state p {
    margin-bottom: 0;
    max-width: 500px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .controls-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-data {
        gap: 1rem;
    }
} 