* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 48px;
    height: 48px;
}

.login-header {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

h1 {
    color: #2c3e50;
    font-size: 2rem;
}

h2 {
    color: #34495e;
    margin-bottom: 20px;
}

.login-form, .link-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.login-form {
    max-width: 400px;
    margin: 100px auto;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input[type="password"], input[type="url"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="password"]:focus, input[type="url"]:focus {
    outline: none;
    border-color: #3498db;
}

button {
    background-color: #3498db;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.logout-btn {
    background-color: #e74c3c;
    padding: 8px 16px;
    font-size: 14px;
}

.logout-btn:hover {
    background-color: #c0392b;
}

.error-message {
    color: #e74c3c;
    margin-top: 10px;
    padding: 10px;
    background-color: #fdf2f2;
    border-radius: 4px;
    display: none;
}

.message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.message.success {
    color: #27ae60;
    background-color: #f2f9f2;
}

.message.error {
    color: #e74c3c;
    background-color: #fdf2f2;
}

.links-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.links-list {
    margin-bottom: 20px;
}

.link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

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

.link-info {
    flex: 1;
}

.link-url {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
}

.link-url:hover {
    text-decoration: underline;
}

.link-date {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 5px;
}

.delete-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.delete-btn:hover {
    background-color: #c0392b;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.loading {
    text-align: center;
    color: #7f8c8d;
    padding: 20px;
}

.no-links {
    text-align: center;
    color: #7f8c8d;
    padding: 40px;
    font-style: italic;
}