* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

.app-container {
    height: 100vh;
    background: #36393f;
}

/* Auth Styles */
.auth-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #36393f;
}

.auth-forms {
    background: #2f3136;
    padding: 2rem;
    border-radius: 5px;
    width: 400px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.form-toggle {
    display: flex;
    margin-bottom: 20px;
}

.form-toggle button {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    color: #72767d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-toggle button.active {
    color: #fff;
    border-bottom: 2px solid #7289da;
}

.signup-form,
.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.signup-form input,
.login-form input {
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #202225;
    background: #40444b;
    color: white;
}

.signup-form button,
.login-form button {
    padding: 10px;
    background: #7289da;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.signup-form button:hover,
.login-form button:hover {
    background: #677bc4;
}

/* Main App Styles */
.main-app {
    display: flex;
    height: 100vh;
}

.servers-sidebar {
    width: 72px;
    background: #202225;
    padding: 12px;
}

.server-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.server-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #36393f;
    border: none;
    color: white;
    cursor: pointer;
    transition: border-radius 0.3s ease;
}

.server-icon:hover {
    border-radius: 35%;
    background: #7289da;
}

.add-server {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #36393f;
    border: none;
    color: #3ba55d;
    font-size: 24px;
    cursor: pointer;
}

/* Channels Sidebar */
.channels-sidebar {
    width: 240px;
    background: #2f3136;
    display: flex;
    flex-direction: column;
}

.server-header {
    padding: 16px;
    background: #2f3136;
    border-bottom: 1px solid #202225;
    color: white;
}

.channels-list {
    padding: 16px;
}

.channel-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #72767d;
    margin-bottom: 8px;
}

.add-channel {
    background: none;
    border: none;
    color: #72767d;
    cursor: pointer;
    font-size: 18px;
}

/* Chat Container */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 16px;
    background: #36393f;
    border-bottom: 1px solid #202225;
    color: white;
}

.messages-container {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #36393f;
}

.message {
    margin-bottom: 16px;
    color: white;
}

.message-input {
    padding: 16px;
    background: #36393f;
    display: flex;
    gap: 8px;
}

.message-input input {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #40444b;
    color: white;
}

.message-input button {
    padding: 0 16px;
    background: #7289da;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Modals */
.server-creation-modal,
.channel-creation-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #36393f;
    padding: 2rem;
    border-radius: 5px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.server-form,
.channel-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 400px;
}

.server-form h2,
.channel-form h2 {
    color: white;
    text-align: center;
}

.server-form input,
.channel-form input {
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #202225;
    background: #40444b;
    color: white;
}

.server-form button,
.channel-form button {
    padding: 10px;
    background: #7289da;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.cancel-server,
.cancel-channel {
    background: #747f8d !important;
}

.hidden {
    display: none !important;
}

.voice-category {
    margin-top: 20px;
    padding: 10px;
    color: #72767d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.voice-channels {
    padding: 0 10px;
}

.voice-channel {
    display: flex;
    align-items: center;
    padding: 8px;
    color: #dcddde;
    cursor: pointer;
    border-radius: 4px;
    margin: 2px 0;
}

.voice-channel:hover {
    background: #36393f;
}

.voice-channel.active {
    background: #3ba55c;
}

.server-settings {
    margin-top: auto;
    padding: 10px;
    border-top: 1px solid #36393f;
}

.invite-members,
.server-settings-btn {
    width: 100%;
    padding: 8px;
    margin: 4px 0;
    background: #36393f;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}
